Skip to Content
Azure Serverless Computing Cookbook - Second Edition
book

Azure Serverless Computing Cookbook - Second Edition

by Praveen Kumar Sreeram, Jason Marston
November 2018
Intermediate to advanced
424 pages
10h 55m
English
Packt Publishing
Content preview from Azure Serverless Computing Cookbook - Second Edition

Customizing the log file name using IBinder interface

Perform the following steps:

  1. Navigate to the run.csx file of the SendNotifications function.
  2. Remove the TextWriter object and replace it with the variable binder of the IBinder type. The following is the new signature of the Run method with the changes highlighted:
#r "SendGrid"#r "Newtonsoft.Json"#r "Microsoft.Azure.WebJobs.Extensions.Storage"
using System;using SendGrid.Helpers.Mail; using Newtonsoft.Json;using Microsoft.Azure.WebJobs.Extensions.Storage;
public static void Run(string myQueueItem,                       out SendGridMessage message,                       IBinder binder,                       ILogger log)
  1. We have removed the TextWriter object, and the outputBlob.WriteLine(emailContent); function will no longer work. Let's replace ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Azure Serverless Computing Cookbook

Azure Serverless Computing Cookbook

Praveen Kumar Sreeram
Azure Serverless Computing Cookbook - Third Edition

Azure Serverless Computing Cookbook - Third Edition

Praveen Kumar Sreeram, Kasam Shaikh, Greg Leonardo
Mastering Azure Serverless Computing

Mastering Azure Serverless Computing

Lorenzo Barbieri, Massimo Bonanni

Publisher Resources

ISBN: 9781789615265Supplemental Content