Esempio n. 1
0
 protected override void Dispose(bool explicitDispose)
 {
     if (explicitDispose)
     {
         _newDependencyInstancesDisposeRegistry?.Dispose();
         //
         _runningResolutionsSpinLock?.EnterAndExitLock();
         _runningResolutionsUniqueness?.Clear();
         _runningResolutionsSequence?.Clear();
         //
         _resolutionModelLazy?.Dispose();
         //
         _exporter?.Dispose();
         //
         _outerScopeGetter?.Dispose();
     }
     _newDependencyInstancesDisposeRegistry = null;
     _runningResolutionsUniqueness          = null;
     _runningResolutionsSequence            = null;
     _runningResolutionsSpinLock            = null;
     _resolutionModelLazy = null;
     _exporter            = null;
     _outerScopeGetter    = null;
     _serviceProviderApi  = null;
     _owner = null;
     //
     base.Dispose(explicitDispose);
 }
Esempio n. 2
0
 protected override void Dispose(bool explicitDispose)
 {
     if (explicitDispose)
     {
         _embeddedMetadata?.Dispose();
     }
     _embeddedMetadata = null;
     //
     base.Dispose(explicitDispose);
 }
Esempio n. 3
0
 protected override void Dispose(bool explicitDispose)
 {
     if (explicitDispose)
     {
         _payload?.Dispose();
     }
     _payload = null;
     //
     base.Dispose(explicitDispose);
 }
Esempio n. 4
0
 static Task P_DefaultRelease(IVh <T> instance)
 {
     try {
         instance?.Dispose();
         return(TaskUtilities.FromVoidResult());
     }
     catch (Exception exception) {
         return(TaskUtilities.FromError(exception));
     }
 }
Esempio n. 5
0
 protected override void Dispose(bool explicitDispose)
 {
     if (explicitDispose)
     {
         _streamStore?.Dispose();
     }
     _streamStore      = null;
     _contentMediaType = null;
     //
     base.Dispose(explicitDispose);
 }
Esempio n. 6
0
 protected override void Dispose(bool explicitDispose)
 {
     if (explicitDispose)
     {
         _sharedInstanceInitializationLock?.Dispose();
         _sharedInstanceStore?.Dispose();
     }
     _sharedInstanceInitializationLock = null;
     _sharedInstanceStore = null;
     //
     base.Dispose(explicitDispose);
 }
Esempio n. 7
0
 protected override void Dispose(bool explicitDispose)
 {
     if (explicitDispose)
     {
         _realHolder?.Dispose();
         _disposeRegistry?.Dispose();
     }
     _realHolder      = null;
     _disposeRegistry = null;
     //
     base.Dispose(explicitDispose);
 }
Esempio n. 8
0
 protected override void Dispose(bool explicitDispose)
 {
     if (explicitDispose)
     {
         _specs?.Dispose();
         _involvedHandlerSpinLock?.EnterAndExitLock();
         _involvedHandlerChain?.Clear();
         _involvedHandlerCounters?.Clear();
     }
     _involvedHandlerCounters = null;
     _involvedHandlerChain    = null;
     _involvedHandlerSpinLock = null;
     _scope = null;
     _specs = null;
     //
     base.Dispose(explicitDispose);
 }