CreateEnvelope() protected abstract method

protected abstract CreateEnvelope ( object>.IDictionary metadata, IMessage message ) : IServerMessageEnvelope
metadata object>.IDictionary
message IMessage
return IServerMessageEnvelope
Beispiel #1
0
            private IMessageEnvelope CreateErrorResponse(IDictionary <string, object> metadata, Exception error)
            {
                var envelope = connector.CreateEnvelope(metadata, new AcknowledgeResponse(false));

                envelope.SetError(error);
                return(envelope);
            }