public override bool TryGetPublishAddress(Uri baseAddress, out Uri publishAddress) { var exchangeName = _messageTopology.EntityName; publishAddress = new GrpcEndpointAddress(new GrpcHostAddress(baseAddress), exchangeName, exchangeType: ExchangeType); return(true); }
public GrpcReceiveEndpointConfiguration(IGrpcHostConfiguration hostConfiguration, string queueName, IGrpcEndpointConfiguration endpointConfiguration) : base(hostConfiguration, endpointConfiguration) { _hostConfiguration = hostConfiguration; _queueName = queueName ?? throw new ArgumentNullException(nameof(queueName)); _endpointConfiguration = endpointConfiguration ?? throw new ArgumentNullException(nameof(endpointConfiguration)); HostAddress = hostConfiguration?.HostAddress ?? throw new ArgumentNullException(nameof(hostConfiguration.HostAddress)); InputAddress = new GrpcEndpointAddress(hostConfiguration.HostAddress, queueName); }