MetalamaAPI documentationAdvanced APIMetalama.​Framework.​Engine.​ServicesService­Provider<TBase>With­Service­Conditional
Open sandboxFocus

ServiceProvider<TBase>.WithServiceConditional Method

WithServiceConditional<T>(Func<ServiceProvider<TBase>, T>)

Declaration
public ServiceProvider<TBase> WithServiceConditional<T>(Func<ServiceProvider<TBase>, T> func)
where T : class, TBase
Parameters
Type Name Description
Func<ServiceProvider<TBase>, T> func
Returns
Type Description
ServiceProvider<TBase>
Type Parameters
Name Description
T