public OccupantService(IRentleDatabaseSettings settings) : base(settings) { _occupant = _database.GetCollection <Occupant>(settings.OccupantCollectionName); _property = _database.GetCollection <Property>(settings.PropertyCollectionName); _lease = _database.GetCollection <Lease>(settings.LeaseCollectionName); _guarantor = _database.GetCollection <Guarantor>(settings.GuarantorCollectionName); }
public Service(IRentleDatabaseSettings settings) { MongoClient client = new MongoClient(settings.ConnectionString); _database = client.GetDatabase(settings.DatabaseName); mergeFields = new List <string>(); mergeValues = new List <object>(); }
public PropertyService(IRentleDatabaseSettings settings) : base(settings) { _property = _database.GetCollection <Property>(settings.PropertyCollectionName); _occupant = _database.GetCollection <Occupant>(settings.OccupantCollectionName); _lease = _database.GetCollection <Lease>(settings.LeaseCollectionName); }
public AlarmService(IHubContext <AlarmHub> hubContext, IRentleDatabaseSettings settings) { _hubContext = hubContext; _leaseService = new LeaseService(settings); }