public ConnectionManager(
            IConnectionFactory connectionFactory,
            IUserSettingsManager userSettings,
            ISharedSettingsManager sharedSettingsManager)
        {
            if (connectionFactory == null)
            {
                throw new ArgumentNullException("connectionFactory");
            }
            if (userSettings == null)
            {
                throw new ArgumentNullException("userSettings");
            }
            if (sharedSettingsManager == null)
            {
                throw new ArgumentNullException("sharedSettingsManager");
            }

            this.connectionFactory = connectionFactory;
            this.userSettings = userSettings;
            this.sharedSettingsManager = sharedSettingsManager;

            this.SyncContext = SynchronizationContext.Current;
        }
Esempio n. 2
0
        public ConnectionManager(
            IConnectionFactory connectionFactory,
            IUserSettingsManager userSettings,
            ISharedSettingsManager sharedSettingsManager)
        {
            if (connectionFactory == null)
            {
                throw new ArgumentNullException("connectionFactory");
            }
            if (userSettings == null)
            {
                throw new ArgumentNullException("userSettings");
            }
            if (sharedSettingsManager == null)
            {
                throw new ArgumentNullException("sharedSettingsManager");
            }

            this.connectionFactory     = connectionFactory;
            this.userSettings          = userSettings;
            this.sharedSettingsManager = sharedSettingsManager;

            this.SyncContext = SynchronizationContext.Current;
        }