Пример #1
0
 protected abstract TResult VisitServiceProvider(ServiceProviderCallSite serviceProviderCallSite, TArgument argument);
Пример #2
0
 protected override Expression VisitServiceProvider(ServiceProviderCallSite serviceProviderCallSite, object context)
 {
     return(ScopeParameter);
 }
Пример #3
0
 protected override object VisitServiceProvider(ServiceProviderCallSite serviceProviderCallSite, ILEmitResolverBuilderContext argument)
 {
     // [return] ProviderScope
     argument.Generator.Emit(OpCodes.Ldarg_1);
     return(null);
 }
Пример #4
0
 protected override Type VisitServiceProvider(ServiceProviderCallSite serviceProviderCallSite, CallSiteValidatorState state) => null;
 protected override object VisitServiceProvider(ServiceProviderCallSite serviceProviderCallSite, RuntimeResolverContext context)
 {
     return(context.Scope);//直接返回RuntimeResolverContext封装的容器
 }
Пример #6
0
 protected override Expression VisitServiceProvider(ServiceProviderCallSite serviceProviderCallSite, ParameterExpression provider)
 {
     return(provider);
 }
Пример #7
0
 protected override object VisitServiceProvider(ServiceProviderCallSite serviceProviderCallSite, ServiceProvider2 provider)
 {
     return(provider);
 }
Пример #8
0
 protected override object VisitServiceProvider(ServiceProviderCallSite serviceProviderCallSite, ServiceProviderEngineScope scope)
 {
     return(scope);
 }
Пример #9
0
 protected override Expression VisitServiceProvider(ServiceProviderCallSite serviceProviderCallSite, CallSiteExpressionBuilderContext context)
 {
     return(context.ScopeParameter);
 }