-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblob1.cs
25 lines (22 loc) · 785 Bytes
/
blob1.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//using System.IO;
//using System.Threading.Tasks;
//using Microsoft.Azure.Functions.Worker;
//using Microsoft.Extensions.Logging;
//namespace AppInsightsLoggingProviders
//{
// public class blob1
// {
// private readonly ILogger<blob1> _logger;
// public blob1(ILogger<blob1> logger)
// {
// _logger = logger;
// }
// [Function(nameof(blob1))]
// public async Task Run([BlobTrigger("container1/{name}")] Stream stream, string name)
// {
// using var blobStreamReader = new StreamReader(stream);
// var content = await blobStreamReader.ReadToEndAsync();
// _logger.LogInformation($"C# Blob trigger function Processed blob\n Name: {name} \n Data: {content}");
// }
// }
//}