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
| public ActionResult Receive() | |
| { | |
| var query = Request.QueryString; | |
| _logWriter.WriteLine(Request.RawUrl); | |
| if (query["hub.mode"] == "subscribe" && | |
| query["hub.verify_token"] == "myToken874523") | |
| { | |
| //string type = Request.QueryString["type"]; |
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
| private string PostRaw(string url, string data) | |
| { | |
| var request = (HttpWebRequest)WebRequest.Create(url); | |
| request.ContentType = "application/json"; | |
| request.Method = "POST"; | |
| using (var requestWriter = new StreamWriter(request.GetRequestStream())) | |
| { | |
| requestWriter.Write(data); | |
| } |
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
| public class BotRequest | |
| { | |
| public string @object { get; set; } | |
| public List<BotEntry> entry { get; set; } | |
| } | |
| public class BotEntry | |
| { | |
| public string id { get; set; } | |
| public long time { get; set; } |
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
| public ActionResult Receive() | |
| { | |
| var query = Request.QueryString; | |
| _logWriter.WriteLine(Request.RawUrl); | |
| if (query["hub.mode"] == "subscribe" && | |
| query["hub.verify_token"] == "myToken874523") | |
| { | |
| //string type = Request.QueryString["type"]; |
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
| Task.Factory.StartNew(() => | |
| { | |
| processing messages ....... | |
| }); | |
| return new HttpStatusCodeResult(HttpStatusCode.OK); |
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
| public class DataSalesForExcelController : EntitySetController<DataSalesForExcel, int> | |
| { | |
| public override IQueryable<DataSalesForExcel> Get() | |
| { | |
| } | |
| } |
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
| public static class WebApiConfig | |
| { | |
| public static void Register(HttpConfiguration config) | |
| { | |
| config.Routes.MapHttpRoute( | |
| name: "DefaultApi", | |
| routeTemplate: "api/{controller}/{id}", | |
| defaults: new { id = RouteParameter.Optional } | |
| ); | |
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
| <service> | |
| <workspace> | |
| <atom:title type="text">Default</atom:title> | |
| <collection href="DataSalesForExcel"> | |
| <atom:title type="text">DataSalesForExcel</atom:title> | |
| </collection> | |
| </workspace> | |
| </service> |
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
| var dict = Request.GetQueryNameValuePairs().ToDictionary(kv => kv.Key, kv => kv.Value, StringComparer.OrdinalIgnoreCase); | |
| var val = dict["saleDate"]; |
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
| let GetValue=(rangeName) => | |
| let | |
| CellRange = Excel.CurrentWorkbook(){[Name=rangeName]}[Content], | |
| Value = CellRange{0}[Column1] | |
| in | |
| Value | |
| in | |
| let | |
| SalesDate = GetValue("salesDateCell"), |
OlderNewer