public static CloudFtpBridgeAppBuilder UseLiteDBStorage(this CloudFtpBridgeAppBuilder builder, Action <LiteDBOptions> configure = null) { Directory.CreateDirectory(PathHelper.GetDefaultStoragePath()); configure = configure ?? new Action <LiteDBOptions>(o => { }); builder.Configure(configure); builder .AddSingleton <IAuditLog, LiteDBAuditLog>() .AddSingleton <IWorkflowRepository, LiteDBWorkflowRepository>(); return(builder); }
public static CloudFtpBridgeAppBuilder UseJsonMailSettingsProvider(this CloudFtpBridgeAppBuilder builder) { builder.AddSingleton <IMailSettingsProvider, JsonMailSettingsProvider>(); return(builder); }
public static CloudFtpBridgeAppBuilder UseLiteDBLegacyStorage(this CloudFtpBridgeAppBuilder builder) { builder.AddSingleton <ILegacyDataProvider, LiteDBLegacyDataProvider>(); return(builder); }