Пример #1
0
 public void Dispose()
 {
     if (_bucketRef != null)
     {
         SWIG.storj_uplink.free_bucket(_bucketRef);
         _bucketRef.Dispose();
         _bucketRef = null;
     }
     if (_bucketResultRef != null)
     {
         SWIG.storj_uplink.free_bucket_result(_bucketResultRef);
         _bucketResultRef.Dispose();
         _bucketResultRef = null;
     }
 }
Пример #2
0
 public void Dispose()
 {
     if (_bucketRef != null)
     {
         SWIG.storj_uplink.free_bucket(_bucketRef);
         _bucketRef.Dispose();
         _bucketRef = null;
     }
     if (_bucketResultRef != null)
     {
         SWIG.storj_uplink.free_bucket_result(_bucketResultRef);
         _bucketResultRef.Dispose();
         _bucketResultRef = null;
     }
     //Don't dispose the _projectRef - it might still be in use!
 }