Chinchilla.Sample.SharedSubscriptions.MessagePublisherTopology.Build C# (CSharp) Method

Build() public method

public Build ( IEndpoint endpoint ) : IMessageTopology
endpoint IEndpoint
return IMessageTopology
        public IMessageTopology Build(IEndpoint endpoint)
        {
            var topology = new MessageTopology();
            topology.PublishExchange = topology.DefineExchange(endpoint.Name, ExchangeType.Topic);

            return topology;
        }
    }
MessagePublisherTopology