/// <summary> /// The match configuration service /// </summary> public MdmMatchConfigurationService(IConfigurationManager configurationManager, IRecordMatchingConfigurationService recordMatchingConfigurationService = null) { this.m_matchingConfigurationService = recordMatchingConfigurationService; this.r_matchConfiguration = new MdmIdentityRecordMatchConfiguration[] { new MdmIdentityRecordMatchConfiguration(configurationManager.GetSection <ResourceManagementConfigurationSection>().ResourceTypes.Select(o => o.Type).ToArray()) }; }
/// <summary> /// Creates a new resource merger with specified configuration /// </summary> public SimResourceMerger() { // Find the specified matching configuration this.m_matchingService = ApplicationServiceContext.Current.GetService <IRecordMatchingService>(); this.m_matchingConfigurationService = ApplicationServiceContext.Current.GetService <IRecordMatchingConfigurationService>(); ApplicationServiceContext.Current.GetService <IDataPersistenceService <TModel> >().Inserting += DataInsertingHandler; ApplicationServiceContext.Current.GetService <IDataPersistenceService <TModel> >().Updating += DataUpdatingHandler; }
/// <summary> /// Create injected service /// </summary> public MdmDataManagementService(IServiceManager serviceManager, IConfigurationManager configuration, IDataCachingService cachingService = null, IRecordMatchingConfigurationService matchConfigurationService = null, IRecordMatchingService matchingService = null, ISubscriptionExecutor subscriptionExecutor = null, SimDataManagementService simDataManagementService = null, IJobManagerService jobManagerService = null) { this.m_configuration = configuration.GetSection <ResourceManagementConfigurationSection>(); this.m_matchingService = matchingService; this.m_serviceManager = serviceManager; this.m_subscriptionExecutor = subscriptionExecutor; this.m_jobManager = jobManagerService; this.m_matchConfigurationService = matchConfigurationService; this.m_dataCachingService = cachingService; if (simDataManagementService != null) { throw new InvalidOperationException("Cannot run MDM and SIM in same mode"); } }
/// <summary> /// Match report operation /// </summary> public XmlExportImportResource(IRecordMatchingConfigurationService matchConfigurationService = null) { this.m_matchConfiguration = matchConfigurationService; }
/// <summary> /// Initializes a new instance of the <see cref="FhirMatchResourceOperation"/> class. /// </summary> /// <param name="localizationService">The localization service.</param> /// <param name="recordMatchingConfigurationService">The record matching configuration service.</param> public FhirMatchResourceOperation(ILocalizationService localizationService, IRecordMatchingConfigurationService recordMatchingConfigurationService) { this.m_matchConfigurationService = recordMatchingConfigurationService; this.m_localizationService = localizationService; }
/// <summary> /// Matching service /// </summary> public MatchOperation(IRecordMatchingService matchingService = null, IRecordMatchingConfigurationService matchConfigService = null) { this.m_matchingService = matchingService; this.m_matchConfiguration = matchConfigService; }
/// <summary> /// Match configuration resource handler /// </summary> public MatchConfigurationResourceHandler(ILocalizationService localizationService, IRecordMatchingConfigurationService configurationService = null) { // TODO: Throw method not support exception if someone calls this this.m_configurationService = configurationService; this.m_localizationService = localizationService; }
/// <summary> /// Create a new match configuration operation /// </summary> public TestMatchConfigurationOperation(IRecordMatchingConfigurationService configService = null, IRecordMatchingService matchingService = null, IMatchReportFactory matchReportFactory = null) { this.m_configService = configService; this.m_matchingService = matchingService; this.m_matchReportFactory = matchReportFactory; }
/// <summary> /// Match report operation /// </summary> public ActivateMatchOperation(IRecordMatchingConfigurationService matchConfigurationService) { this.m_matchConfiguration = matchConfigurationService; }