Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Fixed ClientTelemetryBindingElement clone method #155

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions WCF/Shared/ClientTelemetryEndpointBehavior.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ void IEndpointBehavior.AddBindingParameters(ServiceEndpoint endpoint, BindingPar
SoapRootOperationIdHeaderName = this.SoapRootOperationIdHeaderName,
SoapParentOperationIdHeaderName = this.SoapParentOperationIdHeaderName,
SoapHeaderNamespace = this.SoapHeaderNamespace,
IgnoreChannelEvents = this.IgnoreChannelEvents
};
var originalBinding = endpoint.Binding;

Expand Down
10 changes: 9 additions & 1 deletion WCF/Shared/Implementation/ClientTelemetryBindingElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,15 @@ public ClientTelemetryBindingElement(TelemetryClient client, ClientContract map)

public override BindingElement Clone()
{
return new ClientTelemetryBindingElement(this.telemetryClient, this.operationMap);
return new ClientTelemetryBindingElement(this.telemetryClient, this.operationMap)
{
RootOperationIdHeaderName = this.RootOperationIdHeaderName,
ParentOperationIdHeaderName = this.ParentOperationIdHeaderName,
SoapRootOperationIdHeaderName = this.SoapRootOperationIdHeaderName,
SoapParentOperationIdHeaderName = this.SoapParentOperationIdHeaderName,
SoapHeaderNamespace = this.SoapHeaderNamespace,
IgnoreChannelEvents = this.IgnoreChannelEvents
};
}

public override T GetProperty<T>(BindingContext context)
Expand Down