Skip to content

Commit

Permalink
Make svcutil generate public static methods instead of private
Browse files Browse the repository at this point in the history
Fixes #5179
  • Loading branch information
0xced committed Jun 22, 2023
1 parent 5b5a784 commit 6b4d61c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public MethodCreationHelper(CodeTypeDeclaration clientType)
this.GetEndpointAddress = new CodeMemberMethod
{
Name = ConfigToCodeConstants.GetEndpointAddressMethod,
Attributes = MemberAttributes.Private | MemberAttributes.Static,
Attributes = MemberAttributes.Public | MemberAttributes.Static,
ReturnType = new CodeTypeReference(typeof(EndpointAddress)),
};

Expand All @@ -34,7 +34,7 @@ public MethodCreationHelper(CodeTypeDeclaration clientType)
this.GetBinding = new CodeMemberMethod
{
Name = ConfigToCodeConstants.GetBindingMethod,
Attributes = MemberAttributes.Private | MemberAttributes.Static,
Attributes = MemberAttributes.Public | MemberAttributes.Static,
ReturnType = new CodeTypeReference(typeof(Binding)),
};

Expand Down Expand Up @@ -1998,14 +1998,14 @@ private void CreateDefaultEndpointMethods(string clientTypeName, List<string> en

this.GetDefaultBinding = new CodeMemberMethod
{
Attributes = MemberAttributes.Static | MemberAttributes.Private,
Attributes = MemberAttributes.Static | MemberAttributes.Public,
Name = ConfigToCodeConstants.GetDefaultBindingMethod,
ReturnType = new CodeTypeReference(typeof(Binding)),
};

this.GetDefaultEndpointAddress = new CodeMemberMethod
{
Attributes = MemberAttributes.Static | MemberAttributes.Private,
Attributes = MemberAttributes.Static | MemberAttributes.Public,
Name = ConfigToCodeConstants.GetDefaultEndpointAddressMethod,
ReturnType = new CodeTypeReference(typeof(EndpointAddress)),
};
Expand Down

0 comments on commit 6b4d61c

Please sign in to comment.