예제 #1
0
    public static IConfixServerBuilder AddAzureKeyVaultCryptoProvider(
        this IConfixServerBuilder builder)
    {
        AzureKeyVaultOptions options = builder.Configuration
                                       .GetSection("Confix:AzureKeyVault")
                                       .Get <AzureKeyVaultOptions>();

        builder.Services.AddSingleton(options);
        builder.Services.AddSingleton <ICryptographyClientFactory, CryptographyClientFactory>();
        builder.Services.AddSingleton <IVariableCryptoProvider, KeyVaultVariableCryptoProvider>();

        return(builder);
    }
    public static IConfixServerBuilder AddMongoStore(this IConfixServerBuilder builder)
    {
        builder.Services.AddMongoStore(builder.Configuration);

        return(builder);
    }
예제 #3
0
    public static IConfixServerBuilder AddGraphQLServer(this IConfixServerBuilder builder)
    {
        builder.Services.AddGraphQLServer().AddConfixSchema();

        return(builder);
    }