static void Main(string[] args)
        {
            TelemetryHolder.Init("AppA");
            Console.WriteLine("Hello World!");

            TelemetryHolder.TelemetryClient.TrackTrace("AppA Started!");
            TelemetryHolder.TelemetryClient.Flush();
            MainAsync().Wait();

            Thread.Sleep(10000);
        }
Example #2
0
        static void Main(string[] args)
        {
            TelemetryHolder.Init("AppB");
            telemetryClient = TelemetryHolder.TelemetryClient;

            var client = new SubscriptionClient(Constants.SbConnectionString, "demo", "sub1", ReceiveMode.ReceiveAndDelete);

            client.RegisterMessageHandler(ProcessAsync, new MessageHandlerOptions((ex) => Task.CompletedTask));


            Console.ReadLine();
        }
Example #3
0
 public static void Main(string[] args)
 {
     TelemetryHolder.Init("WebApiProj");
     TelemetryHolder.TelemetryClient.TrackTrace("WebApiProj Starting!");
     BuildWebHost(args).Run();
 }