static MongoDbSagaPersister() { ElementNameConventions = new SagaDataElementNameConvention(); var conventionProfile = new ConventionProfile() .SetElementNameConvention(ElementNameConventions); BsonClassMap.RegisterConventions(conventionProfile, t => typeof(ISagaData).IsAssignableFrom(t)); }
public MongoDbSagaPersister(string connectionString, string collectionName) { this.collectionName = collectionName; database = MongoDatabase.Create(connectionString); elementNameConventions = new SagaDataElementNameConvention(); var conventionProfile = new ConventionProfile() .SetElementNameConvention(elementNameConventions); BsonClassMap.RegisterConventions(conventionProfile, t => typeof(ISagaData).IsAssignableFrom(t)); }
static MongoDbSagaPersister() { RebusLoggerFactory.Changed += f => log = f.GetCurrentClassLogger(); var namingConvention = new SagaDataElementNameConvention(); RevisionMemberName = namingConvention.RevisionMemberName; ElementNameConventions = namingConvention; var conventionProfile = new ConventionProfile() .SetElementNameConvention(ElementNameConventions); BsonClassMap.RegisterConventions(conventionProfile, t => typeof(ISagaData).IsAssignableFrom(t)); }