NServiceBus.Transports.RabbitMQ.PersistentConnection.CreateModel C# (CSharp) Method

CreateModel() public method

public CreateModel ( ) : IModel
return IModel
        public IModel CreateModel()
        {
            if (!IsConnected)
            {
                throw new InvalidOperationException("Rabbit server is not connected.");
            }
            return connection.CreateModel();
        }