static void Main(string[] args) { ZeroApplication.CheckOption(); ZeroApplication.Discove(typeof(Program).Assembly); ZeroApplication.Initialize(); ZeroApplication.RunAwaite(); }
private static void Main(string[] args) { Console.WriteLine("Hello ZeroNet"); ZeroApplication.Initialize(); ZeroApplication.Discove(); ZeroApplication.RunAwaite(); }
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(); }
/// <summary> /// 初始化 /// </summary> void IAutoRegister.Initialize() { ZeroApplication.Discove(typeof(AutoRegister).Assembly); }
/// <summary> /// /// </summary> public void AutoRegist() { ZeroApplication.Discove(GetType().Assembly); }
/// <summary> /// 注册 /// </summary> void IAutoRegister.AutoRegist() { ZeroApplication.Discove(GetType().Assembly); }
private static void Main(string[] args) { ZeroApplication.Initialize(); ZeroApplication.Discove(); ZeroApplication.RunAwaite(); }