protected override object VisitFactoryService(FactoryService factoryService, ServiceProvider provider)
 {
     return(factoryService.Descriptor.ImplementationFactory(provider));
 }
 protected abstract TResult VisitFactoryService(FactoryService factoryService, TArgument argument);
 protected override Type VisitFactoryService(FactoryService factoryService, CallSiteValidatorState state) => null;
Пример #4
0
 protected override Expression VisitFactoryService(FactoryService factoryService, ParameterExpression provider)
 {
     return(Expression.Invoke(Expression.Constant(factoryService.Descriptor.ImplementationFactory), provider));
 }