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); }
protected override void Dispose(bool explicitDispose) { if (explicitDispose) { _embeddedMetadata?.Dispose(); } _embeddedMetadata = null; // base.Dispose(explicitDispose); }
protected override void Dispose(bool explicitDispose) { if (explicitDispose) { _payload?.Dispose(); } _payload = null; // base.Dispose(explicitDispose); }
static Task P_DefaultRelease(IVh <T> instance) { try { instance?.Dispose(); return(TaskUtilities.FromVoidResult()); } catch (Exception exception) { return(TaskUtilities.FromError(exception)); } }
protected override void Dispose(bool explicitDispose) { if (explicitDispose) { _streamStore?.Dispose(); } _streamStore = null; _contentMediaType = null; // base.Dispose(explicitDispose); }
protected override void Dispose(bool explicitDispose) { if (explicitDispose) { _sharedInstanceInitializationLock?.Dispose(); _sharedInstanceStore?.Dispose(); } _sharedInstanceInitializationLock = null; _sharedInstanceStore = null; // base.Dispose(explicitDispose); }
protected override void Dispose(bool explicitDispose) { if (explicitDispose) { _realHolder?.Dispose(); _disposeRegistry?.Dispose(); } _realHolder = null; _disposeRegistry = null; // base.Dispose(explicitDispose); }
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); }