public async Task SetStorageAsync(IManagedMqttClientStorage storage) { await _semaphore.WaitAsync().ConfigureAwait(false); try { _storage = storage; } finally { _semaphore.Release(); } }
public ManagedMqttClientStorageManager(IManagedMqttClientStorage storage) { _storage = storage ?? throw new ArgumentNullException(nameof(storage)); }
public ManagedMqttClientOptionsBuilder WithStorage(IManagedMqttClientStorage value) { _options.Storage = value; return(this); }