private void InitialiseContext(ILocationQuery locationQuery, IChannelsQuery channelsQuery) { _eventSource.Raise(Event.Information, "InitialiseContext", "Initializing context..."); ActivityContext.Current.Register(new SessionVerticalContext()); ActivityContext.Current.Register(new SessionCommunityContext()); ActivityContext.Current.Register(new HttpContextLocationContext(locationQuery.GetCountry("Australia"))); ActivityContext.Current.Register(new ChannelContext(channelsQuery.GetChannelApp(channelsQuery.GetChannel("Web").Id, "Web"))); }
public DailyReportsQuery(IResumeReportsQuery resumeReportsQuery, IJobAdSearchReportsQuery jobAdSearchReportsQuery, IMemberSearchReportsQuery memberSearchReportsQuery, IJobAdReportsQuery jobAdReportsQuery, IEmployerMemberAccessReportsQuery employerMemberAccessReportsQuery, INetworkingReportsQuery networkingReportsQuery, IOrderReportsQuery orderReportsQuery, ICommunicationReportsQuery communicationReportsQuery, IRegistrationReportsQuery registrationReportsQuery, IAccountReportsQuery accountReportsQuery, IChannelsQuery channelsQuery, IIntegrationQuery integrationQuery, IJobAdIntegrationReportsQuery jobAdIntegrationReportsQuery) { _resumeReportsQuery = resumeReportsQuery; _jobAdSearchReportsQuery = jobAdSearchReportsQuery; _memberSearchReportsQuery = memberSearchReportsQuery; _jobAdReportsQuery = jobAdReportsQuery; _employerMemberAccessReportsQuery = employerMemberAccessReportsQuery; _networkingReportsQuery = networkingReportsQuery; _orderReportsQuery = orderReportsQuery; _communicationReportsQuery = communicationReportsQuery; _registrationReportsQuery = registrationReportsQuery; _accountReportsQuery = accountReportsQuery; _channelsQuery = channelsQuery; _integrationQuery = integrationQuery; _jobAdIntegrationReportsQuery = jobAdIntegrationReportsQuery; }
private static void InitialiseContext(IChannelsQuery channelsQuery) { ActivityContext.Current.Register(new ChannelContext(channelsQuery.GetChannelApp(channelsQuery.GetChannel("API").Id, "iOS"))); }