public TestController([NotNull] IPathAddressableRepositoryFactory repositoryFactory) { if (repositoryFactory == null) { throw new ArgumentNullException(nameof(repositoryFactory)); } _Repository = repositoryFactory.TryCreate("main"); }
public static Task <T> TryGetObjectAsync <T>([NotNull] this IPathAddressableRepository repository, [NotNull] string path) => repository.TryGetObjectAsync <T>(path, CancellationToken.None);
public static Task StoreObjectAsync <T>([NotNull] this IPathAddressableRepository repository, [NotNull] string path, [NotNull] T content) => repository.StoreObjectAsync(path, content, CancellationToken.None);