3
3
using System . Collections . Generic ;
4
4
using System . Linq ;
5
5
using System . ServiceModel . Channels ;
6
+ using System . ServiceModel . Description ;
6
7
using System . Text ;
7
8
using System . Threading . Tasks ;
8
9
@@ -21,6 +22,14 @@ public interface IEndpointBuilder<TService>
21
22
/// <returns>The endpoint builder</returns>
22
23
IEndpointBuilder < TService > AddServiceEndpoint < TContract > ( ) ;
23
24
25
+ /// <summary>
26
+ /// Adds a service endpoint using the default binding to the base address of a service host
27
+ /// </summary>
28
+ /// <typeparam name="TContract">The contract type of the service endpoint</typeparam>
29
+ /// <param name="action">An action to alter the ServiceEndpoint</param>
30
+ /// <returns>The endpoint builder</returns>
31
+ IEndpointBuilder < TService > AddServiceEndpoint < TContract > ( Action < IServiceProvider , ServiceEndpoint > action ) ;
32
+
24
33
/// <summary>
25
34
/// Adds a service endpoint using the default binding to a specified path on a service host
26
35
/// </summary>
@@ -29,22 +38,50 @@ public interface IEndpointBuilder<TService>
29
38
/// <returns>The endpoint builder</returns>
30
39
IEndpointBuilder < TService > AddServiceEndpoint < TContract > ( string path ) ;
31
40
41
+ /// <summary>
42
+ /// Adds a service endpoint using the default binding to a specified path on a service host
43
+ /// </summary>
44
+ /// <typeparam name="TContract">The contract type of the service endpoint</typeparam>
45
+ /// <param name="path">The sub path for the endpoint</param>
46
+ /// <param name="action">An action to alter the ServiceEndpoint</param>
47
+ /// <returns>The endpoint builder</returns>
48
+ IEndpointBuilder < TService > AddServiceEndpoint < TContract > ( string path , Action < IServiceProvider , ServiceEndpoint > action ) ;
49
+
32
50
/// <summary>
33
51
/// Adds a service endpoint using the provided binding to the base address of a service host
34
52
/// </summary>
35
53
/// <typeparam name="TContract">The contract type of the service endpoint</typeparam>
36
- /// <param name="binding"></param>
54
+ /// <param name="binding">The binding for the endpoint </param>
37
55
/// <returns>The endpoint builder</returns>
38
56
IEndpointBuilder < TService > AddServiceEndpoint < TContract > ( Binding binding ) ;
39
57
58
+ /// <summary>
59
+ /// Adds a service endpoint using the provided binding to the base address of a service host
60
+ /// </summary>
61
+ /// <typeparam name="TContract">The contract type of the service endpoint</typeparam>
62
+ /// <param name="binding">The binding for the endpoint</param>
63
+ /// <param name="action">An action to alter the ServiceEndpoint</param>
64
+ /// <returns>The endpoint builder</returns>
65
+ IEndpointBuilder < TService > AddServiceEndpoint < TContract > ( Binding binding , Action < IServiceProvider , ServiceEndpoint > action ) ;
66
+
40
67
/// <summary>
41
68
/// Adds a service endpoint using the provided binding to a specified path on a service host
42
69
/// </summary>
43
70
/// <typeparam name="TContract">The contract type of the service endpoint</typeparam>
44
- /// <param name="binding"></param>
71
+ /// <param name="binding">The binding for the endpoint </param>
45
72
/// <param name="path">The sub path for the endpoint</param>
46
73
/// <returns>The endpoint builder</returns>
47
74
IEndpointBuilder < TService > AddServiceEndpoint < TContract > ( Binding binding , string path ) ;
48
75
76
+ /// <summary>
77
+ /// Adds a service endpoint using the provided binding to a specified path on a service host
78
+ /// </summary>
79
+ /// <typeparam name="TContract">The contract type of the service endpoint</typeparam>
80
+ /// <param name="binding">The binding for the endpoint</param>
81
+ /// <param name="path">The sub path for the endpoint</param>
82
+ /// <param name="action">An action to alter the ServiceEndpoint</param>
83
+ /// <returns>The endpoint builder</returns>
84
+ IEndpointBuilder < TService > AddServiceEndpoint < TContract > ( Binding binding , string path , Action < IServiceProvider , ServiceEndpoint > action ) ;
85
+
49
86
}
50
87
}
0 commit comments