/// <summary> /// Initializes a new instance of the <see cref="PersonEventClientRepository"/> class. /// </summary> /// <param name="applicationSetting">The application setting.</param> public PersonEventClientRepository(IApplicationSetting applicationSetting) { if (applicationSetting != null) { this.applicationSetting = applicationSetting; this.personEventClient = DIContainer.Instance.Resolve<IPersonEventClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameterName, applicationSetting.PersonEventServiceBaseAddress) }); this.eventTypeClient = DIContainer.Instance.Resolve<IEventTypeClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameterName, applicationSetting.PersonEventServiceBaseAddress) }); } }
/// <summary> /// Initializes a new instance of the <see cref="GangwayEventRepository" /> class. /// </summary> public GangwayEventRepository() { this.gangwayHistoryClient = DIContainer.Instance.Resolve<IGangwayHistoryClient>(ResolverOverrideForGangway()); this.eventTypeClient = DIContainer.Instance.Resolve<IEventTypeClient>(ResolverOverrideForGangway()); this.personsClient = DIContainer.Instance.Resolve<IPersonsClient>(ResolverOverrideForGangway()); }