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