public async Task SetStorageAsync(IManagedMqttClientStorage storage)
        {
            await _semaphore.WaitAsync().ConfigureAwait(false);

            try
            {
                _storage = storage;
            }
            finally
            {
                _semaphore.Release();
            }
        }
Ejemplo n.º 2
0
 public ManagedMqttClientStorageManager(IManagedMqttClientStorage storage)
 {
     _storage = storage ?? throw new ArgumentNullException(nameof(storage));
 }
Ejemplo n.º 3
0
 public ManagedMqttClientOptionsBuilder WithStorage(IManagedMqttClientStorage value)
 {
     _options.Storage = value;
     return(this);
 }