Ejemplo n.º 1
0
        public Task <ISendEndpoint> GetPublishSendEndpoint(Type messageType)
        {
            if (!TypeMetadataCache.IsValidMessageType(messageType))
            {
                throw new MessageException(messageType, "Anonymous types are not valid message types");
            }

            var address = _nameFormatter.GetTopicAddress(_host, messageType);

            return(_sendEndpointProvider.GetSendEndpoint(address));
        }
Ejemplo n.º 2
0
        public Task <ISendEndpoint> GetPublishSendEndpoint(Type messageType)
        {
            Uri address = _nameFormatter.GetTopicAddress(_host, messageType);

            return(_sendEndpointProvider.GetSendEndpoint(address));
        }