Skip to content

OptionsOverrides Methods

Functionality for overriding options using named options, falling back to the default (unnamed) value.

GetProviderClusterOptions(IServiceProvider, string)

staticextension
View source
public static IOptions<ClusterOptions> GetProviderClusterOptions(this IServiceProvider services, string providerName)
Gets ClusterOptions which may have been overridden on a per-provider basis. Note: This is intended for migration purposes as a means to handle previously inconsistent behaviors in how providers used ServiceId and ClusterId.

Parameters

servicesIServiceProvider
providerNamestring