Exemple #1
0
 static void Main(string[] args)
 {
     ZeroApplication.CheckOption();
     ZeroApplication.Discove(typeof(Program).Assembly);
     ZeroApplication.Initialize();
     ZeroApplication.RunAwaite();
 }
Exemple #2
0
        private static void Main(string[] args)
        {
            Console.WriteLine("Hello ZeroNet");

            ZeroApplication.Initialize();
            ZeroApplication.Discove();
            ZeroApplication.RunAwaite();
        }
Exemple #3
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();
 }
Exemple #4
0
 /// <summary>
 /// 初始化
 /// </summary>
 void IAutoRegister.Initialize()
 {
     ZeroApplication.Discove(typeof(AutoRegister).Assembly);
 }
Exemple #5
0
 /// <summary>
 ///
 /// </summary>
 public void AutoRegist()
 {
     ZeroApplication.Discove(GetType().Assembly);
 }
Exemple #6
0
 /// <summary>
 /// 注册
 /// </summary>
 void IAutoRegister.AutoRegist()
 {
     ZeroApplication.Discove(GetType().Assembly);
 }
Exemple #7
0
 private static void Main(string[] args)
 {
     ZeroApplication.Initialize();
     ZeroApplication.Discove();
     ZeroApplication.RunAwaite();
 }