示例#1
0
 private void Init()
 {
     if (!this._disposed)
     {
         if (this._syncOps == null)
         {
             this._sessionHandle = this._adSession.GetSessionHandle();
             this._syncOps       = this._adSession.GetSyncOperationsInterface();
             this._typeConverter = new ADTypeConverter(this._adSession.SessionInfo);
         }
         return;
     }
     else
     {
         throw new ObjectDisposedException(this.GetType().Name);
     }
 }
示例#2
0
        private void Init()
        {
            object obj;

            if (!this._disposed)
            {
                if (this._syncOps == null)
                {
                    if (string.IsNullOrEmpty(this._adObject.DistinguishedName))
                    {
                        string   str       = "ADActiveObject";
                        string   str1      = "Init: DistinguishedName is {0}";
                        object[] objArray  = new object[1];
                        object[] objArray1 = objArray;
                        int      num       = 0;
                        if (this._adObject.DistinguishedName == null)
                        {
                            obj = "null";
                        }
                        else
                        {
                            obj = "empty";
                        }
                        objArray1[num] = obj;
                        DebugLogger.LogInfo(str, str1, objArray);
                    }
                    this._sessionHandle = this._adSession.GetSessionHandle();
                    this._syncOps       = this._adSession.GetSyncOperationsInterface();
                    this._typeConverter = new ADTypeConverter(this._adSession.SessionInfo);
                }
                return;
            }
            else
            {
                throw new ObjectDisposedException(this.GetType().Name);
            }
        }
示例#3
0
		private void Init()
		{
			if (!this._disposed)
			{
				if (this._syncOps == null)
				{
					this._sessionHandle = this._adSession.GetSessionHandle();
					this._syncOps = this._adSession.GetSyncOperationsInterface();
					this._typeConverter = new ADTypeConverter(this._adSession.SessionInfo);
				}
				return;
			}
			else
			{
				throw new ObjectDisposedException(this.GetType().Name);
			}
		}
示例#4
0
		private void Init()
		{
			object obj;
			if (!this._disposed)
			{
				if (this._syncOps == null)
				{
					if (string.IsNullOrEmpty(this._adObject.DistinguishedName))
					{
						string str = "ADActiveObject";
						string str1 = "Init: DistinguishedName is {0}";
						object[] objArray = new object[1];
						object[] objArray1 = objArray;
						int num = 0;
						if (this._adObject.DistinguishedName == null)
						{
							obj = "null";
						}
						else
						{
							obj = "empty";
						}
						objArray1[num] = obj;
						DebugLogger.LogInfo(str, str1, objArray);
					}
					this._sessionHandle = this._adSession.GetSessionHandle();
					this._syncOps = this._adSession.GetSyncOperationsInterface();
					this._typeConverter = new ADTypeConverter(this._adSession.SessionInfo);
				}
				return;
			}
			else
			{
				throw new ObjectDisposedException(this.GetType().Name);
			}
		}