コード例 #1
0
    private static DataExtensionBuilder AddAccessing(this DataExtensionBuilder builder)
    {
        builder.TryAddOrReplaceService <IAccessorManager, InternalAccessorManager>();
        builder.TryAddOrReplaceService <IAccessorMigrator, InternalAccessorMigrator>();
        builder.TryAddOrReplaceService <IAccessorResolver, InternalAccessorResolver>();

        return(builder);
    }
コード例 #2
0
    /// <summary>
    /// 添加 <typeparamref name="TSeeder"/>。
    /// </summary>
    /// <typeparam name="TSeeder">指定的种子机类型。</typeparam>
    /// <param name="builder">给定的 <see cref="DataExtensionBuilder"/>。</param>
    /// <returns>返回 <see cref="DataExtensionBuilder"/>。</returns>
    public static DataExtensionBuilder AddSeeder <TSeeder>(this DataExtensionBuilder builder)
        where TSeeder : class, IAccessorSeeder
    {
        builder.TryAddOrReplaceService <IAccessorSeeder, TSeeder>();

        return(builder);
    }
コード例 #3
0
    private static DataExtensionBuilder AddValueConversion(this DataExtensionBuilder builder)
    {
        builder.TryAddOrReplaceService <IEncryptionConverterFactory, InternalEncryptionConverterFactory>();

        return(builder);
    }
コード例 #4
0
    private static DataExtensionBuilder AddStoring(this DataExtensionBuilder builder)
    {
        builder.TryAddOrReplaceService(typeof(IStore <>), typeof(BaseStore <>));

        return(builder);
    }
コード例 #5
0
    private static DataExtensionBuilder AddSharding(this DataExtensionBuilder builder)
    {
        builder.TryAddOrReplaceService <IShardingManager, InternalShardingManager>();

        return(builder);
    }
コード例 #6
0
    private static DataExtensionBuilder AddIdentification(this DataExtensionBuilder builder)
    {
        builder.TryAddOrReplaceService <IIdGeneratorFactory, InternalIdGeneratorFactory>();

        return(builder);
    }