public override bool TryGetPayload <TPayload>(out TPayload payload)
        {
            TPayload payloadValue;

            if (_payload.TryGetValue(out payloadValue))
            {
                payload = payloadValue;
                return(true);
            }

            return(base.TryGetPayload(out payload));
        }
Пример #2
0
        public override bool TryGetPayload <T>(out T value)
        {
            T payloadValue;

            if (_payload.TryGetValue(out payloadValue))
            {
                value = payloadValue;
                return(true);
            }

            return(base.TryGetPayload(out value));
        }