public ConventionProfile SetMemberFinderConvention(IMemberFinderConvention convention) { MemberFinderConvention = convention; return this; }
public virtual void Init() { var profile = new ConventionProfile(); profile.SetMemberFinderConvention(new LoggingMemberFinderConvention()); BsonClassMap.RegisterClassMap(new ExceptionMap()); BsonClassMap.RegisterClassMap(new LocationInformationMap()); BsonClassMap.RegisterConventions(profile, t => true); }