Exemplo n.º 1
0
 protected abstract TResult VisitInstanceService(InstanceService instanceCallSite, TArgument argument);
Exemplo n.º 2
0
 protected override object VisitInstanceService(InstanceService instanceCallSite, ServiceProvider provider)
 {
     return(instanceCallSite.Descriptor.ImplementationInstance);
 }
 protected override Expression VisitInstanceService(InstanceService instanceCallSite, ParameterExpression provider)
 {
     return(Expression.Constant(
                instanceCallSite.Descriptor.ImplementationInstance,
                instanceCallSite.Descriptor.ServiceType));
 }
Exemplo n.º 4
0
 protected override Type VisitInstanceService(InstanceService instanceCallSite, CallSiteValidatorState state) => null;