Skip to content

Commit bf12270

Browse files
committed
Tweaks to EventCreatedAt column, and sample C# cleanup
1 parent 1ea1c9f commit bf12270

File tree

44 files changed

+47
-140
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+47
-140
lines changed

sample/ApiHubFileTrigger-CSharp/run.csx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System;
2-
using Microsoft.Azure.WebJobs.Host;
3-
4-
public static string Run(string input, TraceWriter log)
1+
public static string Run(string input, TraceWriter log)
52
{
63
log.Info($"C# ApiHub trigger function processed a file...");
74
return input;

sample/BlobTrigger-CSharp/run.csx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#r "Microsoft.WindowsAzure.Storage"
22

3-
using System;
4-
using Microsoft.Azure.WebJobs.Host;
53
using Microsoft.WindowsAzure.Storage.Blob;
64

75
public static void Run(CloudBlockBlob blob, CloudBlockBlob output, TraceWriter log)

sample/Bot-CSharp/run.csx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
using System;
2-
using System.Net;
3-
using System.Net.Http;
4-
using Microsoft.Azure.WebJobs.Host;
5-
6-
public class BotMessage
1+
public class BotMessage
72
{
83
public string Source { get; set; }
94
public string Message { get; set; }

sample/DocumentDB-CSharp/run.csx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System;
2-
3-
public static object Run(string input)
1+
public static object Run(string input)
42
{
53
return new
64
{

sample/HttpTrigger-CSharp-CustomRoute/run.csx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
#r "Newtonsoft.Json"
22

3-
using System;
4-
using System.Net;
5-
using System.Net.Http;
6-
using Microsoft.Azure.WebJobs.Host;
7-
83
public class ProductInfo
94
{
105
public string Category { get; set; }

sample/HttpTrigger-CSharp-Poco/run.csx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#r "System.Runtime.Serialization"
22

3-
using System;
43
using System.Net;
5-
using System.Net.Http;
6-
using Microsoft.Azure.WebJobs.Host;
74
using System.Runtime.Serialization;
85

96
// DataContract attributes exist to demonstrate that

sample/HttpTrigger-CSharp/run.csx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
1-
using System;
2-
using System.Linq;
3-
using System.Net;
4-
using System.Net.Http;
5-
using System.Threading.Tasks;
6-
using System.Diagnostics;
7-
using Microsoft.Azure.WebJobs.Host;
8-
9-
public static Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log)
1+
public static Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log)
102
{
113
var queryParams = req.GetQueryNameValuePairs()
124
.ToDictionary(p => p.Key, p => p.Value, StringComparer.OrdinalIgnoreCase);

sample/HttpTriggerWithObject-CSharp/run.csx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System;
2-
using System.Net;
3-
4-
public static TestObject Run(TestObject req)
1+
public static TestObject Run(TestObject req)
52
{
63
req.Greeting = $"Hello, {req.SenderName}";
74

sample/MobileTable-CSharp/run.csx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System;
2-
3-
public static Item Run(string input)
1+
public static Item Run(string input)
42
{
53
return new Item
64
{
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System;
2-
public static string Run(string input)
1+
public static string Run(string input)
32
{
43
return "{\"message\":\"Hello from C# ! \",\"location\":\"Redmond\"}";
54
}

0 commit comments

Comments
 (0)