@@ -57,11 +57,11 @@ using Microsoft.Azure.WebJobs.Host;
57
57
using Newtonsoft .Json ;
58
58
using Newtonsoft .Json .Linq ;
59
59
60
- namespace FunctionApp13
60
+ namespace Company . Function
61
61
{
62
- public static class Function1
62
+ public static class EventGridTriggerCSharp
63
63
{
64
- [FunctionName (" Function1 " )]
64
+ [FunctionName (" EventGridTriggerCSharp " )]
65
65
public static void Run ([EventGridTrigger ]JObject eventGridEvent , TraceWriter log )
66
66
{
67
67
log .Info (eventGridEvent .ToString (Formatting .Indented ));
@@ -78,12 +78,12 @@ using Microsoft.Azure.WebJobs;
78
78
using Microsoft .Azure .WebJobs .Extensions .EventGrid ;
79
79
using Microsoft .Azure .WebJobs .Host ;
80
80
81
- namespace FunctionApp14
81
+ namespace Company . Function
82
82
{
83
- public static class Function1
83
+ public static class EventGridTriggerCSharp
84
84
{
85
- [FunctionName (" Function1 " )]
86
- public static void Run ([EventGridTrigger ]EventGridEvent eventGridEvent , TraceWriter log )
85
+ [FunctionName (" EventGridTest " )]
86
+ public static void EventGridTest ([EventGridTrigger ]EventGridEvent eventGridEvent , TraceWriter log )
87
87
{
88
88
log .Info (eventGridEvent .Data .ToString ());
89
89
}
@@ -137,7 +137,7 @@ public static void Run(EventGridEvent eventGridEvent, TraceWriter log)
137
137
log .Info (" C# Event Grid function processed a request." );
138
138
log .Info ($" Subject: {eventGridEvent .Subject }" );
139
139
log .Info ($" Time: {eventGridEvent .EventTime }" );
140
- log .Info (eventGridEvent .Data .ToString ());
140
+ log .Info ($" Data: { eventGridEvent .Data .ToString ()} " );
141
141
}
142
142
```
143
143
0 commit comments