using Abp.Dependency; using Abp.ObjectMapping; using MongoDB.Bson; using System; using Yunda.ISAS.MongoDB.Entities.DataMonitoring; using YunDa.ISAS.MongoDB.Repositories; namespace Yunda.ISAS.DataMonitoringServer.DataCenter { public class DataRepository : ISingletonDependency { public IMongoDbRepository TeleAlarmResultRepository { get; } public IMongoDbRepository TelemeteringResultRepository; public IMongoDbRepository TelemeteringHourStatisticsResultRepository { get; } public IMongoDbRepository TelesignalisationResultRepository { get; } public IMongoDbRepository TelecommandResultRepository { get; } public IMongoDbRepository BsonDocumentResultRepository { get; } [Obsolete("无法使用的")] public IObjectMapper ObjectMapper { get; } public DataRepository(IMongoDbRepository teleAlarmResultRepository , IMongoDbRepository bsonDocumentResultRepository , IMongoDbRepository telemeteringResultRepository , IMongoDbRepository telemeteringHourStatisticsResultRepository , IMongoDbRepository telesignalisationResultRepository , IMongoDbRepository telecommandResultRepository , IObjectMapper objectMapper) { TeleAlarmResultRepository = teleAlarmResultRepository; TelemeteringResultRepository = telemeteringResultRepository; TelemeteringHourStatisticsResultRepository = telemeteringHourStatisticsResultRepository; TelesignalisationResultRepository = telesignalisationResultRepository; TelecommandResultRepository = telecommandResultRepository; BsonDocumentResultRepository = bsonDocumentResultRepository; ObjectMapper = objectMapper; } } }