示例#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);
        }
示例#2
0
        public static CloudFtpBridgeAppBuilder UseJsonMailSettingsProvider(this CloudFtpBridgeAppBuilder builder)
        {
            builder.AddSingleton <IMailSettingsProvider, JsonMailSettingsProvider>();

            return(builder);
        }
示例#3
0
        public static CloudFtpBridgeAppBuilder UseLiteDBLegacyStorage(this CloudFtpBridgeAppBuilder builder)
        {
            builder.AddSingleton <ILegacyDataProvider, LiteDBLegacyDataProvider>();

            return(builder);
        }