private DiscoveredMethod ConvertToProto(IDiscoveredMethod method) { var proto = DiscoveredMethod.Rent(); proto.MethodType = ConvertToProto(method.MethodType); proto.InputMessageId = method.InputMessageId.ConvertToProtoStrict(); proto.OutputMessageId = method.OutputMessageId.ConvertToProtoStrict(); proto.MethodTitle = method.MethodTitle.ConvertToProto(); proto.ProvidedMethod = ConvertToProtoStrict(method.ProvidedMethod); return(proto); }
public IDiscoveredMethod CreateDiscoveredMethod( IProvidedMethodReference providedMethod, Maybe <string> methodTitle, string inputMessageId, string outputMessageId, MethodType methodType) { var obj = DiscoveredMethod.Rent(); obj.ProvidedMethod = providedMethod; obj.MethodTitle = methodTitle; obj.InputMessageId = inputMessageId; obj.OutputMessageId = outputMessageId; obj.MethodType = methodType; return(obj); }
public IDiscoveredMethod CreateDiscoveredMethod( IProvidedMethodReference providedMethod, Maybe <string> methodTitle, string inputMessageId, string outputMessageId, MethodType methodType, IReadOnlyCollection <IOption> options) { var obj = DiscoveredMethod.Rent(); obj.ProvidedMethod = providedMethod; obj.MethodTitle = methodTitle; obj.InputMessageId = inputMessageId; obj.OutputMessageId = outputMessageId; obj.MethodType = methodType; obj.Options = options; return(obj); }