Air.LocalAirStorage.AddAsync C# (CSharp) Method

AddAsync() public method

Adds the specified key.
public AddAsync ( long key, byte value ) : Task
key long The key.
value byte The value.
return Task
        public Task AddAsync(long key, byte[] value)
        {
            if (!_store.TryAdd(key, value))
            {
                throw new Exception();
            }

            return _emptyTask;
        }