示例#1
0
 public EasyAccessCommentMapper(
     IEasyAccessDatabaseService dbService,
     IOptions <EasyAccessConfig> configSettingsOptions
     )
 {
     _configSettings = configSettingsOptions.Value;
     _dbService      = dbService;
 }
 public EasyAccessCrudService(IOptions <EasyAccessConfig> options,
                              IEasyAccessDatabaseService dbService,
                              IEasyAccessStandardInstanceMapper instanceMapper,
                              IEasyAccessCommentMapper commentMapper,
                              IResourceClient <HttpClient> easyAccessResourceClient)
 {
     _dbService      = dbService;
     _settings       = options.Value;
     _instanceMapper = instanceMapper;
     _commentMapper  = commentMapper;
     _resourceClient = easyAccessResourceClient;
 }
        //TODO design a better way to identify services

        public EasyAccessSignalRListener(IResourcePublisher publisher, IEasyAccessDatabaseService dbService, IOptions <EasyAccessConfig> configOptions)
        {
            _publisher = publisher;
            _dbService = dbService;
            _config    = configOptions.Value;
        }
 public EasyAccessInstanceMapper(IOptions <EasyAccessConfig> configSettingsOptions,
                                 IEasyAccessDatabaseService dbService)
 {
     _configSettings = configSettingsOptions.Value;
     _dbService      = dbService;
 }