| Thing | LTS | Current |
|---|---|---|
| Tooling / SDK | 1.0.0 | 1.0.1 |
| Runtime | 1.0.4 | 1.1.1 |
| NetStandard.Library | 1.6.0 | 1.6.1 |
| MVC | 1.0.3 | 1.1.2 |
| EF Core | 1.0.3 | 1.1.1 |
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 ExposingConfigurationMiddlewareExtensions | |
| { | |
| public static IApplicationBuilder UseExposeConfiguration( | |
| this IApplicationBuilder builder, | |
| IConfigurationRoot configRoot, | |
| string pathMatch = "/options") | |
| { | |
| return builder.MapWhen(x => | |
| { |
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
| <script> | |
| $(function(){ | |
| $.when( | |
| $.get("@Url.Content("~/Content/components/cldr-data/main/en-AU/ca-gregorian.json")"), | |
| $.get("@Url.Content("~/Content/components/cldr-data/main/en-AU/numbers.json")"), | |
| $.get("@Url.Content("~/Content/components/cldr-data/supplemental/numberingSystems.json")"), | |
| $.get("@Url.Content("~/Content/components/cldr-data/main/en-AU/timeZoneNames.json")"), | |
| $.get("@Url.Content("~/Content/components/cldr-data/supplemental/likelySubtags.json")"), | |
| $.get("@Url.Content("~/Content/components/cldr-data/supplemental/timeData.json")"), | |
| $.get("@Url.Content("~/Content/components/cldr-data/supplemental/weekData.json")") |
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 string RenderRazorViewToString(string viewName, object model) | |
| { | |
| ViewData.Model = model; | |
| using (var sw = new StringWriter()) | |
| { | |
| var viewResult = ViewEngines.Engines.FindPartialView(ControllerContext, | |
| viewName); | |
| var viewContext = new ViewContext(ControllerContext, viewResult.View, | |
| ViewData, TempData, sw); | |
| viewResult.View.Render(viewContext, sw); |
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 AppInsights404TelemetryFilter : ITelemetryProcessor | |
| { | |
| private ITelemetryProcessor Next { get; set; } | |
| public AppInsights404TelemetryFilter(ITelemetryProcessor next) | |
| { | |
| Next = next; | |
| } | |
| public void Process(ITelemetry item) | |
| { |
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
| powershell Invoke-Command ([scriptblock]::Create((Invoke-WebRequest https://raw.githubusercontent.com/Microsoft/ApplicationInsights-Home/master/API/CreateReleaseAnnotation.ps1).Content)) -ArgumentList "appId", "apiKey", $(APPVEYOR_REPO_COMMIT) |
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
| @ChadT FYI: If you ever happen to be in similar situation that I described earlier, there's a solution: you can set querystring parameter ?x-ms-routing-name=<slotName> that routes traffic into given slot |
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 AppInsightsExceptionHandlerAttribute : HandleErrorAttribute | |
| { | |
| public override void OnException(ExceptionContext filterContext) | |
| { | |
| if (filterContext != null && filterContext.HttpContext != null && filterContext.Exception != null) | |
| { | |
| //If customError is Off, then AI HTTPModule will report the exception | |
| if (filterContext.HttpContext.IsCustomErrorEnabled) | |
| { | |
| // Note: A single instance of telemetry client is sufficient to track multiple telemetry items. |
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\n)?[ \t])*(?:(?:(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t] | |
| )+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t]))*"(?:(?: | |
| \r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:( | |
| ?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ | |
| \t]))*"(?:(?:\r\n)?[ \t])*))*@(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\0 | |
| 31]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\ | |
| ](?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+ | |
| (?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?: | |
| (?:\r\n)?[ \t])*))*|(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z | |
| |(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t]))*"(?:(?:\r\n) |
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
| param([string]$title) "Called with parameter: $title" |