RawRabbit.Channel.ChannelFactory.CreateChannelAsync C# (CSharp) Метод

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

public CreateChannelAsync ( IConnection connection = null ) : Task
connection IConnection
Результат Task
		public Task<IModel> CreateChannelAsync(IConnection connection = null)
		{
			return connection != null
				? Task.FromResult(connection.CreateModel())
				: GetConnectionAsync().ContinueWith(tConnection => tConnection.Result.CreateModel());
		}