Exemple #1
0
 /// <summary>
 ///     Adds partitioned MongoDB storage for any unregistered type.
 /// </summary>
 public static StorageBuilder AddMongoPartitionedAny(this StorageBuilder builder)
 {
     builder
     .AddMongoHistoricalAny()
     .Services
     .ReplaceScoped(typeof(IPartitionedStorageProvider <>), typeof(MongoPartitionedStorageProvider <>))
     .ConfigureSerializer(b => b.AddJsonTypeAny());
     return(builder);
 }