SplatMicrosoftExtensions class¶
Defined in
Namespace: Splat.Microsoft.Extensions.DependencyInjection
Assembly: Splat.Microsoft.Extensions.DependencyInjection.dll
Full name: Splat.Microsoft.Extensions.DependencyInjection.SplatMicrosoftExtensions
Modifiers: public static
Summary¶
View source (opens in a new tab)
Provides extension methods for integrating the Microsoft dependency injection system with Splat by configuring the
application-wide dependency resolver.
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
Remarks¶
These methods allow you to set or update the global dependency resolver used by Splat to leverage Microsoft.Extensions.DependencyInjection. Use these extensions to enable Splat services to be resolved from your application's IServiceCollection or IServiceProvider. Only one resolver can be active at a time; calling these methods will replace any existing resolver.
Methods¶
| Name | Summary |
|---|---|
| static UseMicrosoftDependencyResolver |
Inherited members
System.Object.Equals(System.Object)(opens in a new tab)System.Object.Equals(System.Object,System.Object)(opens in a new tab)System.Object.GetHashCode(opens in a new tab)System.Object.GetType(opens in a new tab)System.Object.MemberwiseClone(opens in a new tab)System.Object.ReferenceEquals(System.Object,System.Object)(opens in a new tab)System.Object.ToString(opens in a new tab)
Extension blocks¶
extension(IServiceCollection (opens in a new tab) serviceCollection)¶
UseMicrosoftDependencyResolver
extension(IServiceProvider (opens in a new tab) serviceProvider)¶
UseMicrosoftDependencyResolver