public static void AddInputMessage(OperationDescription operation, string overridingAction, string[] argumentNames, System.Type[] argumentTypes)
        {
            bool isResponse         = false;
            MessageDescription item = MessageBuilder.CreateMessageDescription(operation, isResponse, MessageDirection.Input, overridingAction, argumentNames, argumentTypes);

            operation.Messages.Add(item);
        }
        public static void AddInputMessage(OperationDescription operation, string overridingAction, System.Type type, SerializerOption serializerOption)
        {
            bool isResponse         = false;
            MessageDescription item = MessageBuilder.CreateMessageDescription(operation, isResponse, MessageDirection.Input, overridingAction, type, serializerOption);

            operation.Messages.Add(item);
        }
Esempio n. 3
0
        public static void AddInputMessage(OperationDescription operation, string overridingAction, Type type, SerializerOption serializerOption)
        {
            Fx.Assert(operation.Messages.Count == 0, "Operation already has input message");

            bool isResponse            = false;
            MessageDescription message = MessageBuilder.CreateMessageDescription(
                operation, isResponse, MessageDirection.Input, overridingAction, type, serializerOption);

            operation.Messages.Add(message);
        }
Esempio n. 4
0
        public static void AddOutputMessage(OperationDescription operation, string overridingAction, Type type, SerializerOption serializerOption)
        {
            Fx.Assert(operation.Messages.Count > 0, "Operation does not have input message");
            Fx.Assert(operation.Messages.Count < 2, "Operation already has output message");

            bool isResponse            = true;
            MessageDescription message = MessageBuilder.CreateMessageDescription(
                operation, isResponse, MessageDirection.Output, overridingAction, type, serializerOption);

            operation.Messages.Add(message);
        }
Esempio n. 5
0
        public static void AddInputMessage(OperationDescription operation, string overridingAction,
                                           string[] argumentNames, Type[] argumentTypes)
        {
            Fx.Assert(operation.Messages.Count == 0, "Operation already has input message");

            bool isResponse            = false;
            MessageDescription message = MessageBuilder.CreateMessageDescription(
                operation, isResponse, MessageDirection.Input, overridingAction, argumentNames, argumentTypes);

            operation.Messages.Add(message);
        }