Ejemplo n.º 1
0
 // Token: 0x0600092E RID: 2350 RVA: 0x000421C4 File Offset: 0x000403C4
 public RemoteCollectorConnectedNotificationSubscriber(ISwisContextFactory swisContextFactory, Action <IEngineComponent> onRemoteCollectorStatusChanged, int masterEngineId)
 {
     if (swisContextFactory == null)
     {
         throw new ArgumentNullException("swisContextFactory");
     }
     this._swisContextFactory = swisContextFactory;
     if (onRemoteCollectorStatusChanged == null)
     {
         throw new ArgumentNullException("onRemoteCollectorStatusChanged");
     }
     this._onRemoteCollectorStatusChanged = onRemoteCollectorStatusChanged;
     this._masterEngineId = masterEngineId;
 }
        public RemoteCollectorConnectedNotificationSubscriber(
            ISwisContextFactory swisContextFactory,
            Action <IEngineComponent> onRemoteCollectorStatusChanged,
            int masterEngineId)
        {
            ISwisContextFactory iswisContextFactory = swisContextFactory;

            if (iswisContextFactory == null)
            {
                throw new ArgumentNullException(nameof(swisContextFactory));
            }
            this._swisContextFactory = iswisContextFactory;
            Action <IEngineComponent> action = onRemoteCollectorStatusChanged;

            if (action == null)
            {
                throw new ArgumentNullException(nameof(onRemoteCollectorStatusChanged));
            }
            this._onRemoteCollectorStatusChanged = action;
            this._masterEngineId = masterEngineId;
        }