Ejemplo n.º 1
0
 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();
 }