示例#1
0
        /// <inheritdoc/>
        public Task StartAsync(CancellationToken cancellationToken)
        {
            Server.OnStarted();

            var clients = new AppCommonClient[]
            {
                GetService <AppPartAngularJobCodeGenerateClient>(),
                GetService <AppPartNetCoreJobCodeGenerateClient>()
            };

            foreach (var client in clients)
            {
                client.Run();
            }

            Console.WriteLine();
            Console.Write("Press <Enter> to exit");
            Console.ReadLine();

            return(Task.CompletedTask);
        }
示例#2
0
        /// <inheritdoc/>
        public Task StartAsync(CancellationToken cancellationToken)
        {
            Server.OnStarted();

            var clients = new AppCommonClient[]
            {
                GetService <AppPartCoreBaseResourceErrorsClient>(),
                GetService <AppPartModDummyMainBaseJobItemGetClient>(),
                GetService <AppPartModDummyMainBaseJobListGetClient>()
            };

            foreach (var client in clients)
            {
                client.Run();
            }

            Console.WriteLine();
            Console.Write("Press <Enter> to exit");
            Console.ReadLine();

            return(Task.CompletedTask);
        }