using System.Linq; using System.Threading; using System.Threading.Tasks; namespace PoweredSoft.ObjectStorage.Core { public interface IObjectStorageCollection { string CollectionName { get; } Task AddAsync(TEntity entity, CancellationToken cancellationToken = default(CancellationToken)); Task DeleteAsync(TEntity entity, CancellationToken cancellationToken = default(CancellationToken)); Task UpdateAsync(TEntity entity, CancellationToken cancellationToken = default(CancellationToken)); IQueryable AsQueryable(); } }