Beispiel #1
0
 public SwitchToMaster(LogService logService, HaIdGeneratorFactory idGeneratorFactory, Config config, System.Func <SlaveFactory> slaveFactorySupplier, System.Func <Locks, ConversationManager> conversationManagerFactory, System.Func <ConversationManager, LifeSupport, Master> masterFactory, System.Func <Master, ConversationManager, MasterServer> masterServerFactory, DelegateInvocationHandler <Master> masterDelegateHandler, ClusterMemberAvailability clusterMemberAvailability, System.Func <NeoStoreDataSource> dataSourceSupplier)
 {
     this.ConversationManagerFactory = conversationManagerFactory;
     this.MasterFactory              = masterFactory;
     this.MasterServerFactory        = masterServerFactory;
     this._userLog                   = logService.GetUserLog(this.GetType());
     this._idGeneratorFactory        = idGeneratorFactory;
     this._config                    = config;
     this._slaveFactorySupplier      = slaveFactorySupplier;
     this._masterDelegateHandler     = masterDelegateHandler;
     this._clusterMemberAvailability = clusterMemberAvailability;
     this._dataSourceSupplier        = dataSourceSupplier;
 }
Beispiel #2
0
 public override void Close()
 {
     _userLog = null;
     ConversationManagerFactory = null;
     MasterFactory              = null;
     MasterServerFactory        = null;
     _idGeneratorFactory        = null;
     _config                    = null;
     _slaveFactorySupplier      = null;
     _masterDelegateHandler     = null;
     _clusterMemberAvailability = null;
     _dataSourceSupplier        = null;
 }