コード例 #1
0
        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);
        }
コード例 #2
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);
        }
コード例 #3
0
        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);
        }