Beispiel #1
0
 static VirtualRoot()
 {
     Id                 = NTMinerRegistry.GetClientId();
     JsonSerializer     = new ObjectJsonSerializer();
     SMessageDispatcher = new MessageDispatcher();
     SCommandBus        = new DirectCommandBus(SMessageDispatcher);
     SEventBus          = new DirectEventBus(SMessageDispatcher);
 }
Beispiel #2
0
 static VirtualRoot()
 {
     Id             = NTMinerRegistry.GetClientId();
     LocalIpSet     = new LocalIpSet();
     JsonSerializer = new ObjectJsonSerializer();
     // 构造函数中会建造消息路径
     LocalMessages = new LocalMessageSet(LocalDbFileFullName);
 }
Beispiel #3
0
 static VirtualRoot()
 {
     Id             = NTMinerRegistry.GetClientId();
     LocalIpSet     = new LocalIpSet();
     JsonSerializer = new NTJsonSerializer();
     // 构造函数中会建造消息路径
     LocalMessages = new LocalMessageSet(EntryAssemblyInfo.LocalDbFileFullName);
 }
Beispiel #4
0
 static VirtualRoot()
 {
     Id                 = NTMinerRegistry.GetClientId();
     LocalIpSet         = new LocalIpSet();
     JsonSerializer     = new ObjectJsonSerializer();
     SMessageDispatcher = new MessageDispatcher();
     SCommandBus        = new DirectCommandBus(SMessageDispatcher);
     SEventBus          = new DirectEventBus(SMessageDispatcher);
     LocalMessages      = new LocalMessageSet(LocalDbFileFullName);
 }
Beispiel #5
0
 static ClientId()
 {
     if (!Directory.Exists(VirtualRoot.GlobalDirFullName))
     {
         Directory.CreateDirectory(VirtualRoot.GlobalDirFullName);
     }
     LangDbFileFullName        = Path.Combine(VirtualRoot.GlobalDirFullName, "lang.litedb");
     LocalLangJsonFileFullName = Path.Combine(VirtualRoot.GlobalDirFullName, "lang.json");
     Id = NTMinerRegistry.GetClientId();
 }
Beispiel #6
0
 static VirtualRoot()
 {
     Id = NTMinerRegistry.GetClientId();
     if (!Directory.Exists(GlobalDirFullName))
     {
         Directory.CreateDirectory(GlobalDirFullName);
     }
     JsonSerializer     = new ObjectJsonSerializer();
     SMessageDispatcher = new MessageDispatcher();
     SCommandBus        = new DirectCommandBus(SMessageDispatcher);
     SEventBus          = new DirectEventBus(SMessageDispatcher);
 }