Esempio n. 1
0
        protected override void OnConfiguring(
            DynamoContextOptionsBuilder builder, IConfiguration configuration)
        {
            OnConfiguringInvoked = true;

            base.OnConfiguring(builder, configuration);
        }
        private static void BuildConfiguration <TContext>(
            TContext contextInstance,
            IConfiguration configuration,
            IDynamoContextOptions contextOptions)
            where TContext : DynamoContext
        {
            var dynamoOptionsBuilder = new DynamoContextOptionsBuilder(contextOptions);
            var configuringMethod    = typeof(TContext)
                                       .GetMethod("OnConfiguring", BindingFlags.Instance | BindingFlags.NonPublic);

            configuringMethod.Invoke(
                contextInstance, new object[] { dynamoOptionsBuilder, configuration });
        }
Esempio n. 3
0
 /// <summary>
 /// Use to configure the Amazon.DynamoDBv2.IAmazonDynamoDB client.
 /// </summary>
 protected virtual void OnConfiguring(
     DynamoContextOptionsBuilder builder,
     IConfiguration configuration)
 {
     return;
 }