コード例 #1
0
        private void InitialiseProducer()
        {
            _rabbitClient = RabbitMQClient.Configure(x =>
            {
                x.HostName = HostName;
                x.Password = Password;
                x.UserName = UserName;
            }).Create();

            _producer = _rabbitClient.GetProducer <Data>(ExchangeName, QueueName, _dataSerializer.ToProto);
        }