Skip to content

Commit

Permalink
DefaultBinding + DefaultEndpointAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
0xced committed Aug 30, 2023
1 parent ce924b8 commit a8b76cb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/CalculatorService/HelloEndpointClient.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System.ServiceModel;
using System.ServiceModel.Channels;

// ReSharper disable once CheckNamespace
namespace ServiceReference;

public partial class CalculatorSoapClient
{
public static Binding DefaultBinding { get; } = GetBindingForEndpoint(EndpointConfiguration.CalculatorSoap);

public static EndpointAddress DefaultEndpointAddress { get; } = GetEndpointAddress(EndpointConfiguration.CalculatorSoap);
}
12 changes: 12 additions & 0 deletions src/HelloService/HelloEndpointClient.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System.ServiceModel;
using System.ServiceModel.Channels;

// ReSharper disable once CheckNamespace
namespace ServiceReference;

public partial class HelloEndpointClient
{
public static Binding DefaultBinding { get; } = GetDefaultBinding();

public static EndpointAddress DefaultEndpointAddress { get; } = GetDefaultEndpointAddress();
}

0 comments on commit a8b76cb

Please sign in to comment.