You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: extensions/src/AWSSDK.Extensions.NETCore.Setup/ServiceCollectionExtensions.cs
+16-12
Original file line number
Diff line number
Diff line change
@@ -129,9 +129,10 @@ public static IServiceCollection AddAWSService<T>(this IServiceCollection collec
129
129
/// <param name="collection"></param>
130
130
/// <param name="options">The AWS options used to create the service client overriding the default AWS options added using AddDefaultAWSOptions.</param>
131
131
/// <param name="lifetime">The lifetime of the service client created. The default is Singleton.</param>
132
-
/// <param name="credentialsFactoryFunc">A func which takes an IServiceProvider and the AWSOptions resolved via the optionsFunc and
133
-
/// returns the IAWSCredentialsFactory used to create the service client overriding the default added using AddCredentialsFactory. If none is provided, the registered IAWSCredentialsFactory will be used,
134
-
/// and if none has been registered a new instance of DefaultAWSCredentialsFactory will be used.
132
+
/// <param name="credentialsFactoryFunc">
133
+
/// A func which takes an IServiceProvider and the AWSOptions provided to this call and returns an IAWSCredentialsFactory used to create the service client.
134
+
/// Must be provided if options are provided to this call _and_ a custom IAWSCredentialsFactory is registered via [Try]AddCredentialsFactory; otherwise the
135
+
/// default will be used.
135
136
/// </param>
136
137
/// <returns>Returns back the IServiceCollection to continue the fluent system of IServiceCollection.</returns>
@@ -147,9 +148,10 @@ public static IServiceCollection AddAWSService<T>(this IServiceCollection collec
147
148
/// <typeparam name="T">The AWS service interface, like IAmazonS3.</typeparam>
148
149
/// <param name="collection"></param>
149
150
/// <param name="optionsFunc">A func which returns the AWS options used to create the service client overriding the default AWS options added using AddDefaultAWSOptions.</param>
150
-
/// <param name="credentialsFactoryFunc">A func which takes an IServiceProvider and the AWSOptions resolved via the optionsFunc and
151
-
/// returns the IAWSCredentialsFactory used to create the service client overriding the default added using AddCredentialsFactory. If none is provided, the registered IAWSCredentialsFactory will be used,
152
-
/// and if none has been registered a new instance of DefaultAWSCredentialsFactory will be used.
151
+
/// <param name="credentialsFactoryFunc">
152
+
/// A func which takes an IServiceProvider and the AWSOptions resolved by optionsFunc and returns an IAWSCredentialsFactory used to create the service client.
153
+
/// Must be provided if options are provided to this call _and_ a custom IAWSCredentialsFactory is registered via [Try]AddCredentialsFactory; otherwise the
154
+
/// default will be used.
153
155
/// </param>
154
156
/// <param name="lifetime">The lifetime of the service client created. The default is Singleton.</param>
155
157
/// <returns>Returns back the IServiceCollection to continue the fluent system of IServiceCollection.</returns>
@@ -186,9 +188,10 @@ public static IServiceCollection TryAddAWSService<T>(this IServiceCollection col
186
188
/// <param name="collection"></param>
187
189
/// <param name="options">The AWS options used to create the service client overriding the default AWS options added using AddDefaultAWSOptions.</param>
188
190
/// <param name="lifetime">The lifetime of the service client created. The default is Singleton.</param>
189
-
/// /// <param name="credentialsFactoryFunc">A func which takes an IServiceProvider and the AWSOptions resolved via the optionsFunc and
190
-
/// returns the IAWSCredentialsFactory used to create the service client overriding the default added using AddCredentialsFactory. If none is provided, the registered IAWSCredentialsFactory will be used,
191
-
/// and if none has been registered a new instance of DefaultAWSCredentialsFactory will be used.
191
+
/// <param name="credentialsFactoryFunc">
192
+
/// A func which takes an IServiceProvider and the AWSOptions resolved by optionsFunc and returns an IAWSCredentialsFactory used to create the service client.
193
+
/// Must be provided if options are provided to this call _and_ a custom IAWSCredentialsFactory is registered via [Try]AddCredentialsFactory; otherwise the
194
+
/// default will be used.
192
195
/// </param>
193
196
/// <returns>Returns back the IServiceCollection to continue the fluent system of IServiceCollection.</returns>
@@ -204,9 +207,10 @@ public static IServiceCollection TryAddAWSService<T>(this IServiceCollection col
204
207
/// <typeparam name="T">The AWS service interface, like IAmazonS3.</typeparam>
205
208
/// <param name="collection"></param>
206
209
/// <param name="optionsFunc">A func which returns the AWS options used to create the service client overriding the default AWS options added using AddDefaultAWSOptions.</param>
207
-
/// <param name="credentialsFactoryFunc">A func which takes an IServiceProvider and the AWSOptions resolved via the optionsFunc and
208
-
/// returns the IAWSCredentialsFactory used to create the service client overriding the default added using AddCredentialsFactory. If none is provided, the registered IAWSCredentialsFactory will be used,
209
-
/// and if none has been registered a new instance of DefaultAWSCredentialsFactory will be used.
210
+
/// <param name="credentialsFactoryFunc">
211
+
/// A func which takes an IServiceProvider and the AWSOptions resolved by optionsFunc and returns an IAWSCredentialsFactory used to create the service client.
212
+
/// Must be provided if options are provided to this call _and_ a custom IAWSCredentialsFactory is registered via [Try]AddCredentialsFactory; otherwise the
213
+
/// default will be used.
210
214
/// </param>
211
215
/// <param name="lifetime">The lifetime of the service client created. The default is Singleton.</param>
212
216
/// <returns>Returns back the IServiceCollection to continue the fluent system of IServiceCollection.</returns>
0 commit comments