Exemple #1
0
            private RpcHandler(MulticastDelegate handler, out string inputMessageName)
            {
                // process input type
                inputFormatter = MessageAttribute.GetFormatter <TInput>(out inputMessageName);

                // process output type
                outputFormatter = MessageAttribute.GetFormatter <TOutput>(out outputMessageName, out outputMessageType);

                this.handler = handler;
            }
 private static MessageReader <TOutput> CreateReader <TOutput>()
 => MessageReader.CreateReader(MessageAttribute.GetFormatter <TOutput>(out _));
 private SignalHandler(MulticastDelegate handler, out string inputMessageName)
 {
     inputFormatter = MessageAttribute.GetFormatter <TInput>(out inputMessageName);
     this.handler   = handler;
 }