Chinchilla.Sample.StockTicker.Server.PricePublisherTopology.Build C# (CSharp) Method

Build() public method

public Build ( IEndpoint endpoint ) : IMessageTopology
endpoint IEndpoint
return IMessageTopology
        public IMessageTopology Build(IEndpoint endpoint)
        {
            var messageTopology = new MessageTopology();
            messageTopology.PublishExchange = messageTopology.DefineExchange(endpoint.MessageType, ExchangeType.Topic);
            return messageTopology;
        }
    }
PricePublisherTopology