Ejemplo n.º 1
0
 internal static IHttpReportsBuilder UseOracleStorageService(this IHttpReportsBuilder builder)
 {
     builder.Services.AddTransient <IHttpReportsStorage, OracleStorage>();
     builder.Services.AddSingleton <OracleConnectionFactory>();
     builder.Services.AddSingleton <IModelCreator, ModelCreator>();
     return(builder.UseDirectlyReportsTransport());
 }
Ejemplo n.º 2
0
        internal static IHttpReportsBuilder UsePostgreSQLStorageService(this IHttpReportsBuilder builder)
        {
            builder.Services.AddSingleton <IHttpReportsStorage, PostgreSQLStorage>();
            builder.Services.AddSingleton <PostgreConnectionFactory>();

            return(builder.UseDirectlyReportsTransport());
        }
Ejemplo n.º 3
0
 private static IHttpReportsBuilder UseSQLServerStorageService(this IHttpReportsBuilder builder)
 {
     builder.Services.AddTransient <IHttpReportsStorage, SQLServerStorage>();
     builder.Services.AddSingleton <SQLServerConnectionFactory>();
     builder.Services.AddSingleton <IModelCreator, ModelCreator>();
     return(builder.UseDirectlyReportsTransport());
 }