protected override void Cleanup()
 {
     ConsumedMethod?.Dispose();
     ProvidedMethod?.Dispose();
     ContextLinkageOptions?.Dispose();
     ClearTarget();
 }
Пример #2
0
 protected override void Cleanup()
 {
     ProvidedMethod?.Dispose();
     ProvidedMethod  = default;
     MethodTitle     = default;
     InputMessageId  = default;
     OutputMessageId = default;
     MethodType      = default;
 }
Пример #3
0
 protected override void Cleanup()
 {
     InputMessageId  = string.Empty;
     OutputMessageId = string.Empty;
     MethodTitle     = string.Empty;
     MethodType      = default;
     ProvidedMethod?.Dispose();
     ProvidedMethod = default;
 }
Пример #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (ProvidedMethod != null ? ProvidedMethod.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ MethodTitle.GetHashCode();
         hashCode = (hashCode * 397) ^ (InputMessageId != null ? InputMessageId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (OutputMessageId != null ? OutputMessageId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)MethodType;
         return(hashCode);
     }
 }
Пример #5
0
 protected override void Cleanup()
 {
     InputMessageId  = string.Empty;
     OutputMessageId = string.Empty;
     MethodTitle     = string.Empty;
     MethodType      = default;
     ProvidedMethod?.Dispose();
     ProvidedMethod = default;
     foreach (var option in Options)
     {
         option.Dispose();
     }
     Options.Clear();
 }
Пример #6
0
 protected override void Cleanup()
 {
     ProvidedMethod?.Dispose();
     ProvidedMethod  = default;
     MethodTitle     = default;
     InputMessageId  = default;
     OutputMessageId = default;
     MethodType      = default;
     foreach (var option in Options)
     {
         option.Dispose();
     }
     Options = ArrayConstants <IOption> .Empty;
 }
 protected override void Cleanup()
 {
     ConsumedMethod?.Dispose();
     ProvidedMethod?.Dispose();
     ClearTarget();
 }