public static async Task Main(string[] args)
        {
#if DEBUG
            await LykkeStarter.Start <Startup>(true);
#else
            await LykkeStarter.Start <Startup>(false);
#endif
        }
        /// <summary>
        /// Application entrypoint.
        /// </summary>
        public static Task Main(string[] args)
        {
#if DEBUG
            return(LykkeStarter.Start <Startup>(true));
#else
            return(LykkeStarter.Start <Startup>(false));
#endif
        }
        public static Task StartAsync <TStartup, TSettings>(
            bool isDebug)
            where TStartup : ApiStartupBase <TSettings>
            where TSettings : ApiSettings
        {
            IsDebug = isDebug;

            return(LykkeStarter.Start <TStartup>(isDebug));
        }
Exemple #4
0
        /// <summary>Application entrypoint</summary>
        public static Task Main(string[] args)
        {
            const int port = 5000;

#if DEBUG
            return(LykkeStarter.Start <Startup>(true, port));
#else
            return(LykkeStarter.Start <Startup>(false, port));
#endif
        }
        static async Task Main(string[] args)
        {
//#$if DEBUG
            await LykkeStarter.Start <Startup>(true, 5002);

//#$else
            await LykkeStarter.Start <Startup>(false);

//#$endif
        }
Exemple #6
0
        // ReSharper disable once UnusedParameter.Global
        public static async Task Main(string[] args)
        {
#if DEBUG
            var port = 5002;

            IntegrationName = args.Length < 1 ? "Example" : args[0];

            if (args.Length > 1)
            {
                port = int.Parse(args[1]);
            }

            await LykkeStarter.Start <Startup>(true, port);
#else
            await LykkeStarter.Start <Startup>(false);
#endif
        }