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();
 }
 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();
 }