diff --git a/snippets/csharp/VS_Snippets_CFX/callbackbehaviorattribute/cs/client.cs b/snippets/csharp/VS_Snippets_CFX/callbackbehaviorattribute/cs/client.cs index fbcf80734f5..edbd46cffda 100644 --- a/snippets/csharp/VS_Snippets_CFX/callbackbehaviorattribute/cs/client.cs +++ b/snippets/csharp/VS_Snippets_CFX/callbackbehaviorattribute/cs/client.cs @@ -7,9 +7,7 @@ namespace Microsoft.WCF.Documentation { [CallbackBehaviorAttribute( - IncludeExceptionDetailInFaults= true, - UseSynchronizationContext=true, - ValidateMustUnderstand=true + UseSynchronizationContext=true )] public class Client : SampleDuplexHelloCallback { @@ -22,9 +20,10 @@ public Client() public void Run() { - // Picks up configuration from the configuration file. + System.ServiceModel.Channels.Binding binding = new WSDualHttpBinding(); + EndpointAddress address = new EndpointAddress("http://localhost:8080/DuplexHello"); SampleDuplexHelloClient wcfClient - = new SampleDuplexHelloClient(new InstanceContext(this), "WSDualHttpBinding_SampleDuplexHello"); + = new SampleDuplexHelloClient(new InstanceContext(this), binding, address); try { Console.ForegroundColor = ConsoleColor.White; diff --git a/snippets/csharp/VS_Snippets_CFX/callbackbehaviorattribute/cs/client.csproj b/snippets/csharp/VS_Snippets_CFX/callbackbehaviorattribute/cs/client.csproj index e17be2cd354..20066df6ed8 100644 --- a/snippets/csharp/VS_Snippets_CFX/callbackbehaviorattribute/cs/client.csproj +++ b/snippets/csharp/VS_Snippets_CFX/callbackbehaviorattribute/cs/client.csproj @@ -1,48 +1,28 @@ - + - Debug - AnyCPU - {66190530-B4E3-4BF0-94B4-DFE52D15E50F} Exe - false + net10.0 Client Microsoft.WCF.Documentation + disable + disable + false - - true - full - false - .\bin\Debug\ - DEBUG;TRACE - - - pdbonly - true - .\bin\Release\ - TRACE - - - - - - - - + + Always - - - - - - - - + + + + + + \ No newline at end of file