Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public static CloudFtpBridgeAppBuilder UseJsonMailSettingsProvider(this CloudFtpBridgeAppBuilder builder)
        {
            builder.AddSingleton <IMailSettingsProvider, JsonMailSettingsProvider>();

            return(builder);
        }
Exemplo n.º 3
0
        public static CloudFtpBridgeAppBuilder UseLiteDBLegacyStorage(this CloudFtpBridgeAppBuilder builder)
        {
            builder.AddSingleton <ILegacyDataProvider, LiteDBLegacyDataProvider>();

            return(builder);
        }