Esempio n. 1
0
        static void Main(string[] args)
        {
            if (!SharedUtils.PrintVersionsAndCheckArgs(args, typeof(EmbeddedAssemblyTestAppProgram)))
            {
                return;
            }



            var arguments = SharedUtils.LoadArguments(args);

            TelimenaStartupInfo si = new TelimenaStartupInfo(arguments.TelemetryKey)
            {
                ProgramInfo = arguments.ProgramInfo
                ,
                DeliveryInterval = TimeSpan.FromSeconds(3)
            };

            //this is to test that telimena works OK if used as embedded assembly
            var teli = Telimena.Construct(si);

            teli.Track.Event("HelloFromEmbeddedTelimenaClientApp");
            teli.Track.SendAllDataNow();

            Console.WriteLine("Ended with no errors");
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Console.WriteLine($"Starting {typeof(InstallersTestAppProgram).Assembly.GetName().Name}");

            SharedUtils.ShowArgsRequiredMessage(args, typeof(InstallersTestAppProgram), "InstallersTestApp");

            var arguments = SharedUtils.LoadArguments(args);


            new TestAppWorker(arguments).Work();
        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            Console.WriteLine($"Starting {typeof(InstallersTestAppProgram).Assembly.GetName().Name}");

            if (!SharedUtils.PrintVersionsAndCheckArgs(args, typeof(InstallersTestAppProgram)))
            {
                return;
            }

            var arguments = SharedUtils.LoadArguments(args);


            new TestAppWorker(arguments).Work();
        }
Esempio n. 4
0
        static void Main(string[] args)
        {
            SharedUtils.ShowArgsRequiredMessage(args, typeof(EmbeddedAssemblyTestAppProgram), "EmbeddedAssemblyTestApp");

            var arguments = SharedUtils.LoadArguments(args);

            TelimenaStartupInfo si = new TelimenaStartupInfo(arguments.TelemetryKey, new Uri(arguments.ApiUrl))
            {
                ProgramInfo = arguments.ProgramInfo
                ,
                DeliveryInterval = TimeSpan.FromSeconds(3)
            };

            //this is to test that telimena works OK if used as embedded assembly
            var teli = Telimena.Construct(si);

            teli.Track.Event("HelloFromEmbeddedTelimenaClientApp");
            teli.Track.SendAllDataNow();

            Console.WriteLine("Ended with no errors");
        }