示例#1
0
        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
 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);
        }