internal DiscoveredOnlineMethod(DiscoveredMethod method) : this( method.ProvidedMethod, method.Title, method.InputMessageId, method.OutputMessageId, method.Type) { }
internal DiscoveredMethod(DiscoveredMethod method) : this( method.ProvidedMethod, method.Title, method.InputMessageId, method.OutputMessageId, method.Type, method.CallDescriptor) { }
private IDiscoveredMethod ConvertFromProto(DiscoveredMethod proto) { return(_messageFactory.CreateDiscoveredMethod( ConvertFromProtoStrict(proto.ProvidedMethod), proto.MethodTitle.ConvertFromProto(), proto.InputMessageId.ConvertFromProtoStrict(), proto.OutputMessageId.ConvertFromProtoStrict(), ConvertFromProto(proto.MethodType))); }
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); }
internal DiscoveredOnlineDuplexStreamingMethod(DiscoveredMethod method) : base(method) { }
internal DiscoveredOnlineClientStreamingMethod(DiscoveredMethod method) : base(method) { }
internal DiscoveredOnlineServerStreamingMethod(DiscoveredMethod method) : base(method) { }
internal DiscoveredOnlineUnaryMethod(DiscoveredMethod method) : base(method) { }