예제 #1
0
 public MCService(ILogger <MCService> logger, FileUploadServices fileUploadServices, IWebHostEnvironment webHostEnvironment, DataMCProcessingServices dataMCProcessingServices, CustomerServices customerServices, IRestMCService restMCService)
 {
     _logger                   = logger;
     _fileUploadServices       = fileUploadServices;
     _hostingEnvironment       = webHostEnvironment;
     _dataMCProcessingServices = dataMCProcessingServices;
     _restMCService            = restMCService;
     _customerServices         = customerServices;
 }
        public CustomerServices(IMongoDbConnection connection, ILogger <CustomerServices> logger, NotificationServices notificationServices, UserRoleServices userroleServices, CRM.DataCRMProcessingServices dataCRMProcessingServices, MC.DataMCProcessingServices dataMCProcessingServices)
        {
            var client   = new MongoClient(connection.ConnectionString);
            var database = client.GetDatabase(connection.DataBase);

            _customer                  = database.GetCollection <Customer>(MongoCollection.CustomerCollection);
            _logger                    = logger;
            _notificationServices      = notificationServices;
            _userroleServices          = userroleServices;
            _dataCRMProcessingServices = dataCRMProcessingServices;
            _dataMCProcessingServices  = dataMCProcessingServices;
        }