static void Main(string[] args) { ZeroApplication.CheckOption(); ZeroApplication.Discove(typeof(Program).Assembly); ZeroApplication.Initialize(); ZeroApplication.RunAwaite(); }
public Startup(IConfiguration configuration) { Configuration = configuration; Agebull.Common.Configuration.ConfigurationManager.SetConfiguration(configuration); ZeroApplication.CheckOption(); }
public Startup(IConfiguration configuration) { Configuration = configuration; ZeroApplication.CheckOption(); RouteOption.ConfigFileName = Path.Combine(ZeroApplication.Config.ConfigFolder, "route_config.json"); RouteOption.CheckOption(); }
static async Task Main(string[] args) { IocHelper.AddTransient <IMessageConsumer, KafkaConsumer>(); ZeroApplication.CheckOption(); ZeroApplication.Discove(typeof(Program).Assembly); MessageProducer.Initialize(); ZeroApplication.Initialize(); MessageProducer.Publish("test1", "api/test", "{}"); await ZeroApplication.RunAwaiteAsync(); }
public App() { WorkContext.SynchronousContext = new DispatcherSynchronousContext { Dispatcher = Dispatcher }; Trace.Listeners.Add(new MessageTraceListener()); ConfigurationManager.BasePath = Path.GetDirectoryName(typeof(App).Assembly.Location); ZeroApplication.CheckOption(); ZeroApplication.Initialize(); }
private static void Main(string[] args) { ZeroApplication.CheckOption(); ZeroApplication.Initialize(); ZeroApplication.RunAwaite(); }