RawRabbit.Channel.ChannelFactory.CreateChannelAsync C# (CSharp) Method

CreateChannelAsync() public method

public CreateChannelAsync ( IConnection connection = null ) : Task
connection IConnection
return Task
		public Task<IModel> CreateChannelAsync(IConnection connection = null)
		{
			return connection != null
				? Task.FromResult(connection.CreateModel())
				: GetConnectionAsync().ContinueWith(tConnection => tConnection.Result.CreateModel());
		}