public static void ConfigureStorage() { var fileStorage = new FileDocumentStorage(); InputRetreiverFactory.RegisterInputRetreiver(x => true, fileStorage); DocumentPersisterFactory.RegisterDocumentPersister(x => true, fileStorage); }
private static void ConfigureStorage() { var blobStorage = new BlobDocumentStorage(ConfigurationManager.AppSettings["storageAccount"], ConfigurationManager.AppSettings["storageKey"]); var fileStorage = new FileDocumentStorage(); var httpInputRetriever = new HttpInputRetriever(); InputRetriever.RegisterInputRetriever(x => x.StartsWith("http"), httpInputRetriever); InputRetriever.RegisterInputRetriever(IsBlobstorageUrl, blobStorage); InputRetriever.RegisterInputRetriever(x => true, fileStorage); DocumentPersister.RegisterDocumentPersister(IsBlobstorageUrl, blobStorage); DocumentPersister.RegisterDocumentPersister(x => true, fileStorage); }