This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#r "Microsoft.Web.Deployment.dll" | |
using System; | |
using System.IO; | |
using System.Net; | |
using System.Security.Cryptography.X509Certificates; | |
using System.Net.Security; | |
using System.Diagnostics; | |
using Microsoft.Web.Deployment; | |
using System.Collections.Generic; | |
using System.Collections.Specialized; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Newtonsoft.Json; | |
using System; | |
using Windows.UI.Xaml; | |
using Windows.UI.Xaml.Controls; | |
using Windows.Web.Http; | |
using static System.Environment; | |
namespace RemoteCompile | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#r "Newtonsoft.Json" | |
using System; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
using System.Net.Http.Headers; | |
using System.Collections.Generic; | |
public static void Run(string input, TraceWriter log) | |
{ | |
var statusMsg = "Bender says: Get up meatbag!"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#r "Newtonsoft.Json" | |
#r "System.Web.Extensions" | |
#r "System.Web" | |
using System; | |
using System.Net; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
using System.Web; | |
using System.Web.Script.Serialization; | |
using System.Linq; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
public static void Run(TimerInfo myTimer, TraceWriter log) | |
{ | |
log.Info($"C# Timer trigger function executed at: {DateTime.Now}"); | |
//Read current settings | |
string[] settings = File.ReadAllLines(@"D:\home\site\wwwroot\RandomTrigger\function.json"); | |
var schedule = settings[6]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Net; | |
public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log) | |
{ | |
log.Info($"C# HTTP trigger function processed a request. RequestUri={req.RequestUri}"); | |
var responseMsg = String.Empty; | |
Random r = new Random(); | |
int rInt = r.Next(0,4); | |
responseMsg = GetQuote(rInt); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#r "Newtonsoft.Json" | |
using System; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
using System.Net.Http.Headers; | |
using System.Collections.Generic; | |
public static void Run(string input, TraceWriter log) | |
{ | |
var statusMsg = "Bender says: Get up meatbag!"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#r "Newtonsoft.Json" | |
using System; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Net.Http; | |
using Newtonsoft.Json; | |
using static System.Environment; | |
using System.Collections.Generic; | |
public async static void Run(string input, TraceWriter log) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Newtonsoft.Json; | |
using System.Collections.Generic; | |
using System.Net; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Threading.Tasks; | |
namespace BenderPreCompiled | |
{ | |
public class BenderDll |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[HttpPost] | |
public async Task<IActionResult> Http(Code code) | |
{ | |
string output = code.csx; | |
using (var client = new HttpClient()) | |
{ | |
var reqInput = code.csx; | |
var req = JsonConvert.DeserializeObject<HttpTestRequest>(reqInput); | |
var requestUrl = req.url; |