@@ -25,7 +25,7 @@ public MethodCreationHelper(CodeTypeDeclaration clientType)
25
25
this . GetEndpointAddress = new CodeMemberMethod
26
26
{
27
27
Name = ConfigToCodeConstants . GetEndpointAddressMethod ,
28
- Attributes = MemberAttributes . Private | MemberAttributes . Static ,
28
+ Attributes = MemberAttributes . Public | MemberAttributes . Static ,
29
29
ReturnType = new CodeTypeReference ( typeof ( EndpointAddress ) ) ,
30
30
} ;
31
31
@@ -34,7 +34,7 @@ public MethodCreationHelper(CodeTypeDeclaration clientType)
34
34
this . GetBinding = new CodeMemberMethod
35
35
{
36
36
Name = ConfigToCodeConstants . GetBindingMethod ,
37
- Attributes = MemberAttributes . Private | MemberAttributes . Static ,
37
+ Attributes = MemberAttributes . Public | MemberAttributes . Static ,
38
38
ReturnType = new CodeTypeReference ( typeof ( Binding ) ) ,
39
39
} ;
40
40
@@ -412,7 +412,7 @@ private static void AddWS2007HttpBindingConfiguration(CodeStatementCollection st
412
412
ResultVarName ,
413
413
new CodeObjectCreateExpression ( typeof ( WS2007HttpBinding ) ) ) ) ;
414
414
resultVar = new CodeVariableReferenceExpression ( ResultVarName ) ;
415
- }
415
+ }
416
416
417
417
WSHttpMaxOutProperties ( statements , resultVar ) ;
418
418
@@ -960,7 +960,7 @@ private static void AddCustomBindingConfiguration(CodeStatementCollection statem
960
960
ResultVarName ,
961
961
new CodeObjectCreateExpression ( typeof ( CustomBinding ) ) ) ) ;
962
962
resultVar = new CodeVariableReferenceExpression ( ResultVarName ) ;
963
- }
963
+ }
964
964
965
965
foreach ( BindingElement bindingElement in custom . Elements )
966
966
{
@@ -1998,14 +1998,14 @@ private void CreateDefaultEndpointMethods(string clientTypeName, List<string> en
1998
1998
1999
1999
this . GetDefaultBinding = new CodeMemberMethod
2000
2000
{
2001
- Attributes = MemberAttributes . Static | MemberAttributes . Private ,
2001
+ Attributes = MemberAttributes . Static | MemberAttributes . Public ,
2002
2002
Name = ConfigToCodeConstants . GetDefaultBindingMethod ,
2003
2003
ReturnType = new CodeTypeReference ( typeof ( Binding ) ) ,
2004
2004
} ;
2005
2005
2006
2006
this . GetDefaultEndpointAddress = new CodeMemberMethod
2007
2007
{
2008
- Attributes = MemberAttributes . Static | MemberAttributes . Private ,
2008
+ Attributes = MemberAttributes . Static | MemberAttributes . Public ,
2009
2009
Name = ConfigToCodeConstants . GetDefaultEndpointAddressMethod ,
2010
2010
ReturnType = new CodeTypeReference ( typeof ( EndpointAddress ) ) ,
2011
2011
} ;
0 commit comments