ResolverMixins class¶
Defined in
Namespace: Splat Assembly: Splat.Core.dll Full name: Splat.ResolverMixins Modifiers: public static
Summary¶
View source (opens in a new tab)
Provides extension methods for registering services, factories, and singleton instances with an
IMutableDependencyResolver in a fluent manner.
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
Remarks¶
These mixin methods simplify the registration of services, factories, and singleton or constant values with dependency resolvers. They support both generic and non-generic registrations, as well as contract-based registrations for advanced scenarios. All methods return the resolver instance to enable fluent chaining of multiple registrations.
Methods¶
| Name | Summary |
|---|---|
| static RegisterAnd | |
| static RegisterConstantAnd | |
| static RegisterLazySingletonAnd |
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(IMutableDependencyResolver resolver)¶
RegisterAndRegisterAndRegisterAndRegisterAndRegisterAndRegisterAndRegisterAndRegisterAndRegisterConstantAndRegisterConstantAndRegisterConstantAndRegisterConstantAndRegisterConstantAndRegisterConstantAndRegisterLazySingletonAndRegisterLazySingletonAndRegisterLazySingletonAndRegisterLazySingletonAndRegisterLazySingletonAndRegisterLazySingletonAnd