public ServiceRemotingServerEventListener(TelemetryConfiguration configuration, string effectiveProfileQueryEndpoint, bool setComponentCorrelationHttpHeaders, ICorrelationIdLookupHelper correlationIdLookupHelper = null) { this.client = new TelemetryClient(configuration); this.client.Context.GetInternalContext().SdkVersion = SdkVersionUtils.GetSdkVersion("serviceremoting:"); this.configuration = configuration; this.effectiveProfileQueryEndpoint = effectiveProfileQueryEndpoint; this.setComponentCorrelationHttpHeaders = setComponentCorrelationHttpHeaders; this.correlationIdLookupHelper = correlationIdLookupHelper ?? new CorrelationIdLookupHelper(effectiveProfileQueryEndpoint); ServiceRemotingServiceEvents.ReceiveRequest += ServiceRemotingServiceEvents_ReceiveRequest; ServiceRemotingServiceEvents.SendResponse += ServiceRemotingServiceEvents_SendResponse; }
public ServiceRemotingClientEventListener( TelemetryConfiguration configuration, string effectiveProfileQueryEndpoint, bool setComponentCorrelationHttpHeaders, IEnumerable <string> correlationDomainExclusionList = null, ICorrelationIdLookupHelper correlationIdLookupHelper = null) { this.client = new TelemetryClient(configuration); this.client.Context.GetInternalContext().SdkVersion = SdkVersionUtils.GetSdkVersion("rddsr:"); this.configuration = configuration; this.setComponentCorrelationHttpHeaders = setComponentCorrelationHttpHeaders; this.correlationIdLookupHelper = correlationIdLookupHelper ?? new CorrelationIdLookupHelper(effectiveProfileQueryEndpoint); this.correlationDomainExclusionList = correlationDomainExclusionList ?? Enumerable.Empty <string>(); ServiceRemotingClientEvents.SendRequest += ServiceRemotingClientEvents_SendRequest; ServiceRemotingClientEvents.ReceiveResponse += ServiceRemotingClientEvents_ReceiveResponse; }