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}");

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

            var arguments = SharedUtils.LoadArguments(args);


            new TestAppWorker(arguments).Work();
        }