static VirtualRoot() { Id = NTMinerRegistry.GetClientId(); JsonSerializer = new ObjectJsonSerializer(); SMessageDispatcher = new MessageDispatcher(); SCommandBus = new DirectCommandBus(SMessageDispatcher); SEventBus = new DirectEventBus(SMessageDispatcher); }
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); }
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); }
static VirtualRoot() { MessageDispatcher = new MessageDispatcher(); _commandBus = new DirectCommandBus(MessageDispatcher); _eventBus = new DirectEventBus(MessageDispatcher); }
static VirtualRoot() { SMessageDispatcher = new MessageDispatcher(); SCommandBus = new DirectCommandBus(SMessageDispatcher); SEventBus = new DirectEventBus(SMessageDispatcher); }