Exemple #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));
        }
Exemple #2
0
        public Task <ISendEndpoint> GetPublishSendEndpoint(Type messageType)
        {
            Uri address = _nameFormatter.GetTopicAddress(_host, messageType);

            return(_sendEndpointProvider.GetSendEndpoint(address));
        }