internal OrionDiscoveryJobFactory(IEngineDAL engineDal) { if (engineDal == null) { throw new ArgumentNullException(nameof(engineDal)); } this.engineDAL = engineDal; }
// Token: 0x060005BC RID: 1468 RVA: 0x0002262F File Offset: 0x0002082F public OneTimeJobService(IOneTimeJobManager oneTimeJobManager, IEngineDAL engineDal) { if (oneTimeJobManager == null) { throw new ArgumentNullException("oneTimeJobManager"); } this.oneTimeJobManager = oneTimeJobManager; if (engineDal == null) { throw new ArgumentNullException("engineDal"); } this.engineDal = engineDal; }
public OneTimeJobService(IOneTimeJobManager oneTimeJobManager, IEngineDAL engineDal) { IOneTimeJobManager oneTimeJobManager1 = oneTimeJobManager; if (oneTimeJobManager1 == null) { throw new ArgumentNullException(nameof(oneTimeJobManager)); } this.oneTimeJobManager = oneTimeJobManager1; IEngineDAL iengineDal = engineDal; if (iengineDal == null) { throw new ArgumentNullException(nameof(engineDal)); } this.engineDal = iengineDal; }
internal static DiscoveryPollingEngineType?GetDiscoveryPollingEngineType( int engineId, IEngineDAL engineDal = null) { engineDal = engineDal ?? (IEngineDAL) new EngineDAL(); Engine engine = engineDal.GetEngine(engineId); if (engine.get_ServerType().Equals("BranchOffice")) { engine.set_ServerType("RemoteCollector"); } DiscoveryPollingEngineType result; if (Enum.TryParse <DiscoveryPollingEngineType>(engine.get_ServerType(), true, out result)) { return(new DiscoveryPollingEngineType?(result)); } if (OrionDiscoveryJobFactory.log.get_IsErrorEnabled()) { OrionDiscoveryJobFactory.log.Error((object)("Unable to determine DiscoveryPollingEngineType value for engine server type '" + engine.get_ServerType() + "'")); } return(new DiscoveryPollingEngineType?()); }
public RemoteCollectorEngineInitiator( int engineId, string engineName, bool interfaceAvailable, IEngineDAL engineDal, IThrottlingStatusProvider throttlingStatusProvider, IEngineComponent engineComponent) { if (engineName == null) { throw new ArgumentNullException(nameof(engineName)); } IEngineDAL iengineDal = engineDal; if (iengineDal == null) { throw new ArgumentNullException(nameof(engineDal)); } this._engineDal = iengineDal; IThrottlingStatusProvider ithrottlingStatusProvider = throttlingStatusProvider; if (ithrottlingStatusProvider == null) { throw new ArgumentNullException(nameof(throttlingStatusProvider)); } this._throttlingStatusProvider = ithrottlingStatusProvider; IEngineComponent engineComponent1 = engineComponent; if (engineComponent1 == null) { throw new ArgumentNullException(nameof(engineComponent)); } this._engineComponent = engineComponent1; this.EngineId = engineId; this.ServerName = engineName.ToUpperInvariant(); this._interfaceAvailable = interfaceAvailable; }
// Token: 0x06000378 RID: 888 RVA: 0x00015A78 File Offset: 0x00013C78 internal static DiscoveryPollingEngineType?GetDiscoveryPollingEngineType(int engineId, IEngineDAL engineDal = null) { engineDal = (engineDal ?? new EngineDAL()); Engine engine = engineDal.GetEngine(engineId); if (engine.ServerType.Equals("BranchOffice")) { engine.ServerType = "RemoteCollector"; } DiscoveryPollingEngineType value; if (Enum.TryParse <DiscoveryPollingEngineType>(engine.ServerType, true, out value)) { return(new DiscoveryPollingEngineType?(value)); } if (OrionDiscoveryJobFactory.log.IsErrorEnabled) { OrionDiscoveryJobFactory.log.Error("Unable to determine DiscoveryPollingEngineType value for engine server type '" + engine.ServerType + "'"); } return(null); }