Metalama 1.0 / / Metalama Documentation / Advanced API / Metalama.​Framework.​Engine.​Services / Service­Provider<TBase> / With­Service­Conditional

Method WithServiceConditional

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