Brod.Brokers.RequestHandlers.HandleBrokerInfo C# (CSharp) Метод

HandleBrokerInfo() публичный Метод

public HandleBrokerInfo ( BinaryStream stream ) : Response
stream Brod.Common.BinaryStream
Результат Brod.Contracts.Responses.Response
        public Response HandleBrokerInfo(BinaryStream stream)
        {
            // Not used for now
            var request = BrokerInfoRequest.ReadFromStream(stream);

            var response = new BrokerInfoResponse();
            response.HostName = _configuration.HostName;
            response.BrokerId = _configuration.BrokerId;
            response.PullPort = _configuration.PullPort;
            response.NumberOfPartitions = _configuration.NumberOfPartitions;
            response.NumberOfPartitionsPerTopic = _configuration.NumberOfPartitionsPerTopic;

            return response;
        }