예제 #1
0
파일: Proxy.cs 프로젝트: ReinhardHsu/XAPI2
        public Proxy(string path)
        {
            _PlatformID = Environment.OSVersion.Platform;

            if (_PlatformID == PlatformID.Unix)
            {
                _Invoke = new SoInvoke(path);
            }
            else
            {
                _Invoke = new DllInvoke(path);
            }
        }
예제 #2
0
        public Proxy(string path)
        {
            _PlatformID = Environment.OSVersion.Platform;

            if (_PlatformID == PlatformID.Unix)
            {
                _Invoke = new SoInvoke(path);
            }
            else
            {
                _Invoke = new DllInvoke(path);
            }
        }
예제 #3
0
파일: Proxy.cs 프로젝트: ReinhardHsu/XAPI2
 protected virtual void Dispose(bool disposing)
 {
     if (!disposed)
     {
         if (disposing)
         {
             // Free other state (managed objects).
         }
         // Free your own state (unmanaged objects).
         // Set large fields to null.
         
         if (_Invoke != null)
             _Invoke.Dispose();
         
         _Invoke = null;
         _XRequest = null;
         disposed = true;
     }
     //base.Dispose(disposing);
 }
예제 #4
0
        protected virtual void Dispose(bool disposing)
        {
            if (!disposed)
            {
                if (disposing)
                {
                    // Free other state (managed objects).
                }
                // Free your own state (unmanaged objects).
                // Set large fields to null.

                if (_Invoke != null)
                {
                    _Invoke.Dispose();
                }

                _Invoke   = null;
                _XRequest = null;
                disposed  = true;
            }
            //base.Dispose(disposing);
        }