public static CloudyConfigurator AddFileBasedDocuments(this CloudyConfigurator cloudy, string path = "json")
 {
     cloudy.AddCachedDocuments <FileDataSource>();
     cloudy.Services.AddSingleton <IFileHandler, FileHandler>();
     cloudy.Services.AddSingleton <IFilePathProvider, FilePathProvider>();
     cloudy.Services.AddSingleton <IFileBasedDocumentOptions>(new FileBasedDocumentOptions(path));
     return(cloudy);
 }
 public static CloudyConfigurator AddInMemoryDocuments(this CloudyConfigurator cloudy)
 {
     cloudy.AddCachedDocuments <InMemoryDataSource>();
     return(cloudy);
 }