-
Generating demo DevOps account: https://azuredevopsdemogenerator.azurewebsites.net/
-
Enabling Continious Integration with Azure Pipelines: https://www.azuredevopslabs.com/
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
| Connect-AzureRmAccount | |
| New-AzureRmRoleDefinition -InputFile .\azure-role-dashboard-contributor.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
| import {IPositionTracker} from "IPositionTracker"; | |
| import GeoLocationPositionTracker from "GeoLocationPositionTracker"; | |
| class App { | |
| constructor(private positionTracker : IPositionTracker) { | |
| } | |
| start(): void { | |
| this.positionTracker.subscribe(c => { | |
| alert(`Lat: ${c.latitude}; Lon: ${c.longitude}`); |
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
| function sumAndDisplay(left : number, right : number, prefix : string = "Result") { | |
| var result = left + right; | |
| alert(`${prefix}: ${result}`); | |
| } | |
| sumAndDisplay(1, 2); |
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.Collections.Concurrent; | |
| using System.Data.Common; | |
| using System.Data.Entity; | |
| using System.Data.Entity.Infrastructure.Interception; | |
| using Microsoft.ApplicationInsights; | |
| using Microsoft.ApplicationInsights.DataContracts; | |
| namespace Project.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 ApplicationInsightsContextInit : IContextInitializer | |
| { | |
| private const string DefaultApplicationSection = "SectionDefault"; | |
| private readonly Dictionary<string, string> _pathToSection = new Dictionary<string, string>() | |
| { | |
| { "/section1", "Section1" }, | |
| { "/section2", "Section2" }, | |
| }; |
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 WebApiApplication : HttpApplication | |
| { | |
| protected void Application_Start() | |
| { | |
| TelemetryConfiguration.Active.ContextInitializers.Add(new AiContextInit()); | |
| TelemetryConfiguration.Active.TelemetryInitializers.Add(new AiContextTelemtryInit()); | |
| } | |
| } | |
| public class AiContextInit : IContextInitializer |