public async Task <IMqttChannel <IPacket> > CreateAsync() { if (_innerChannelFactory == null) { throw new MqttException(ClientProperties.PacketChannelFactory_InnerChannelFactoryNotFound); } IMqttChannel <byte[]> binaryChannel = await _innerChannelFactory .CreateAsync(); return(Create(binaryChannel)); }
public async Task <IMqttChannel <IPacket> > CreateAsync() { if (innerChannelFactory == null) { throw new MqttException(Properties.Resources.PacketChannelFactory_InnerChannelFactoryNotFound); } var binaryChannel = await innerChannelFactory .CreateAsync() .ConfigureAwait(continueOnCapturedContext: false); return(Create(binaryChannel)); }