// 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);
        }
        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?());
        }