Esempio n. 1
0
        public Proxy(string path)
        {
            _PlatformID = Environment.OSVersion.Platform;

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

            if (_PlatformID == PlatformID.Unix)
            {
                _Invoke = new SoInvoke(path);
            }
            else
            {
                _Invoke = new DllInvoke(path);
            }
        }
Esempio n. 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);
 }
Esempio n. 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);
 }