Chinchilla.Sample.StockTicker.Server.PricePublisherTopology.Build C# (CSharp) 메소드

Build() 공개 메소드

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