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;
 }
示例#3
0
 protected override void Cleanup()
 {
     ProvidedService?.Dispose();
     ProvidedService = default;
     MethodId        = string.Empty;
 }