@@ -68,35 +68,41 @@ public void AddRange(params Client[] clients)
68
68
/// </summary>
69
69
/// <param name="clientId">The client id for the single page application.</param>
70
70
/// <param name="configure">The <see cref="Action{ClientBuilder}"/> to configure the default single page application.</param>
71
- public void AddIdentityServerSPA ( string clientId , Action < ClientBuilder > configure )
71
+ public Client AddIdentityServerSPA ( string clientId , Action < ClientBuilder > configure )
72
72
{
73
73
var app = ClientBuilder . IdentityServerSPA ( clientId ) ;
74
74
configure ( app ) ;
75
- Add ( app . Build ( ) ) ;
75
+ var client = app . Build ( ) ;
76
+ Add ( client ) ;
77
+ return client ;
76
78
}
77
79
78
80
/// <summary>
79
81
/// Adds an externally registered single page application.
80
82
/// </summary>
81
83
/// <param name="clientId">The client id for the single page application.</param>
82
84
/// <param name="configure">The <see cref="Action{ClientBuilder}"/> to configure the default single page application.</param>
83
- public void AddSPA ( string clientId , Action < ClientBuilder > configure )
85
+ public Client AddSPA ( string clientId , Action < ClientBuilder > configure )
84
86
{
85
87
var app = ClientBuilder . SPA ( clientId ) ;
86
88
configure ( app ) ;
87
- Add ( app . Build ( ) ) ;
89
+ var client = app . Build ( ) ;
90
+ Add ( client ) ;
91
+ return client ;
88
92
}
89
93
90
94
/// <summary>
91
95
/// Adds an externally registered native application..
92
96
/// </summary>
93
97
/// <param name="clientId">The client id for the single page application.</param>
94
98
/// <param name="configure">The <see cref="Action{ClientBuilder}"/> to configure the native application.</param>
95
- public void AddNativeApp ( string clientId , Action < ClientBuilder > configure )
99
+ public Client AddNativeApp ( string clientId , Action < ClientBuilder > configure )
96
100
{
97
101
var app = ClientBuilder . NativeApp ( clientId ) ;
98
102
configure ( app ) ;
99
- Add ( app . Build ( ) ) ;
103
+ var client = app . Build ( ) ;
104
+ Add ( client ) ;
105
+ return client ;
100
106
}
101
107
}
102
108
}
0 commit comments