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