protected override void Cleanup() { ConsumedMethod?.Dispose(); ProvidedMethod?.Dispose(); ContextLinkageOptions?.Dispose(); ClearTarget(); }
protected override void Cleanup() { ProvidedMethod?.Dispose(); ProvidedMethod = default; MethodTitle = default; InputMessageId = default; OutputMessageId = default; MethodType = default; }
protected override void Cleanup() { InputMessageId = string.Empty; OutputMessageId = string.Empty; MethodTitle = string.Empty; MethodType = default; ProvidedMethod?.Dispose(); ProvidedMethod = default; }
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); } }
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(); }