예제 #1
0
 internal DiscoveredOnlineMethod(DiscoveredMethod method) : this(
         method.ProvidedMethod,
         method.Title,
         method.InputMessageId,
         method.OutputMessageId,
         method.Type)
 {
 }
예제 #2
0
 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);
        }
예제 #5
0
        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);
        }
예제 #7
0
 internal DiscoveredOnlineDuplexStreamingMethod(DiscoveredMethod method) : base(method)
 {
 }
예제 #8
0
 internal DiscoveredOnlineClientStreamingMethod(DiscoveredMethod method) : base(method)
 {
 }
예제 #9
0
 internal DiscoveredOnlineServerStreamingMethod(DiscoveredMethod method) : base(method)
 {
 }
예제 #10
0
 internal DiscoveredOnlineUnaryMethod(DiscoveredMethod method) : base(method)
 {
 }