Inheritance: IPowerShellSupport, IDisposable
 /// <summary>
 /// Dispose the resources we use
 /// </summary>
 /// <param name="disposing">true if called from <see cref="PSExchangeConnector.Dispose()"/> (?????)</param>
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         // free managed resources
         if (this._powershell != null)
         {
             this._powershell.Dispose();
             this._powershell = null;
         }
     }
 }
        // ====================================== HERE ARE OBJECT-CLASS-INDEPENDENT CONNECTOR PARTS =====================================

        #region Connector Members
        /// <summary>
        /// Inits the connector with configuration injected
        /// </summary>
        /// <param name="configuration">Connector configuration</param>
        public void Init(Configuration configuration)
        {
            LOG.Info("ExchangeConnector.Init: entry");

            _configuration = (ExchangeConfiguration)configuration;
            _activeDirectoryConnector.Init(configuration);
            _schema           = null;
            _objectClassInfos = null;
            Schema();
            _powershell = new ExchangePowerShellSupport(_configuration.ExchangeVersion, _configuration.ExchangeUri,
                                                        _configuration.ConnectorMessages);
            _scripting = new Scripting(_configuration.ScriptingConfigurationFile, _powershell);

            LOG.Info("ExchangeConnector.Init: exit");
        }
Exemplo n.º 3
0
 internal RunSpaceAsyncInitializer(ExchangePowerShellSupport outer)
 {
     _outer = outer;
 }
Exemplo n.º 4
0
 internal RunSpaceAsyncInitializer(ExchangePowerShellSupport outer)
 {
     _outer = outer;
 }