protected override void Cleanup() { ConsumedService?.Dispose(); ConsumedService = default; ProvidedService?.Dispose(); ProvidedService = default; foreach (var method in Methods) { method.Dispose(); } Methods.Clear(); ServiceTitle = string.Empty; }
protected override void Cleanup() { ConsumedService?.Dispose(); ConsumedService = default; ProvidedService?.Dispose(); ProvidedService = default; ServiceTitle = default; if (Methods != null) { foreach (var method in Methods) { method?.Dispose(); } } Methods = default; }
protected override void Cleanup() { ProvidedService?.Dispose(); ProvidedService = default; MethodId = string.Empty; }