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
| dfu-util -d 2b04:d006 -a 0 -s 0x8020000 -D system-part1-0.4.7-photon.bin | |
| dfu-util -d 2b04:d006 -a 0 -s 0x8060000:leave -D system-part2-0.4.7-photon.bin |
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
| Install-Package Microsoft.AspNet.DataProtection -Pre | |
| Install-Package Microsoft.AspNet.WebHooks.Custom -Pre | |
| Install-Package Microsoft.AspNet.WebHooks.Custom.AzureStorage -Pre | |
| Install-Package Microsoft.AspNet.WebHooks.Custom.Mvc -Pre | |
| Install-Package Microsoft.AspNet.WebHooks.Custom.Api -Pre | |
| Install-Package Microsoft.AspNet.WebHooks.Receivers.Custom -Pre |
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
| DateTimeOffset.ParseExact("Tue Dec 01 22:35:28 +0000 2015", "ddd MMM dd HH:mm:ss zzz yyyy", CultureInfo.InvariantCulture); | |
| DateTime.ParseExact("Tue Dec 01 22:35:28 +0000 2015", "ddd MMM dd HH:mm:ss K yyyy", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal); |
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 telemetryClient = new TelemetryClient(); | |
| telemetryClient.TrackException(sendException, replacements); | |
| telemetryClient.Flush(); |
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
| static void Main() | |
| { | |
| TelemetryConfiguration.Active.InstrumentationKey = CloudConfigurationManager.GetSetting("appInsightsInstrumentationKey"); | |
| new TelemetryClient().TrackEvent("WebJobStart", new Dictionary<string, string> { { "appInsightsInstrumentationKey", TelemetryConfiguration.Active.InstrumentationKey } }); | |
| var host = new JobHost(); | |
| host.Call(typeof(Functions).GetMethod("ProcessQueueMessage")); | |
| } |
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
| Install-Package Microsoft.ApplicationInsights. | |
| Install-Package Microsoft.ApplicationInsights.DependencyCollector | |
| Install-Package Microsoft.ApplicationInsights.PerfCounterCollector | |
| Install-Package Microsoft.ApplicationInsights.WindowsServer |
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 GreetingsOrchestration : TaskOrchestration<string,string> | |
| { | |
| public override async Task<string> RunTask(OrchestrationContext context, string input) | |
| { | |
| string user = await context.ScheduleTask<string>(typeof(GetUserTask)); | |
| string greeting = await context.ScheduleTask<string>(typeof(SendGreetingTask), user); | |
| return greeting; | |
| } | |
| } |
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 sealed class GetUserTask : TaskActivity<string, string> | |
| { | |
| public GetUserTask() | |
| { | |
| } | |
| protected override string Execute(DurableTask.TaskContext context, string input) | |
| { | |
| GetUserName userNamedialog = new GetUserName(); | |
| Console.WriteLine("Waiting for user to enter name..."); |
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 GreetingsOrchestration2 : TaskOrchestration<string,int> | |
| { | |
| public override async Task<string> RunTask(OrchestrationContext context, int secondsToWait) | |
| { | |
| var user = context.ScheduleTask<string>("DurableTaskSamples.Greetings.GetUserTask", string.Empty); | |
| var timer = context.CreateTimer<string>(context.CurrentUtcDateTime.AddSeconds(secondsToWait), "TimedOut"); | |
| var u = await Task.WhenAny(user, timer); | |
| string greeting = await context.ScheduleTask<string>("DurableTaskSamples.Greetings.SendGreetingTask", string.Empty, u.Result); |
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
| SELECT | |
| position, | |
| sum(count) as count | |
| INTO | |
| jongblogpowerbi | |
| FROM | |
| jongblogiothub | |
| GROUP BY TumblingWindow(second, 1), position |
OlderNewer