From 1369f70962931042513b6f58174281e23cbf5205 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 31 Jul 2026 23:05:52 +0000 Subject: [PATCH 1/2] Initial plan From b06b8c05f227ca8d923b73e95d94d48c067fd9f3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 31 Jul 2026 23:09:17 +0000 Subject: [PATCH 2/2] =?UTF-8?q?Fix=20EndpointBehaviors=20=E2=86=92=20Behav?= =?UTF-8?q?iors=20in=20channelfactorybehaviors=20snippet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../VS_Snippets_CFX/channelfactorybehaviors/cs/client.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/snippets/csharp/VS_Snippets_CFX/channelfactorybehaviors/cs/client.cs b/snippets/csharp/VS_Snippets_CFX/channelfactorybehaviors/cs/client.cs index fc894355651..f3945e17a69 100644 --- a/snippets/csharp/VS_Snippets_CFX/channelfactorybehaviors/cs/client.cs +++ b/snippets/csharp/VS_Snippets_CFX/channelfactorybehaviors/cs/client.cs @@ -13,9 +13,10 @@ public static void Main() { try { - // Picks up configuration from the config file. + WSHttpBinding binding = new WSHttpBinding(SecurityMode.Message); + EndpointAddress address = new EndpointAddress("http://localhost:8080/ServiceMetadata/SampleService"); ChannelFactory factory - = new ChannelFactory("WSHttpBinding_ISampleService"); + = new ChannelFactory(binding, address); // Add the client side behavior programmatically to all created channels. factory.Endpoint.Behaviors.Add(new EndpointBehaviorMessageInspector());