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; } }
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! }