private static void AddElements(SectionExtensionContext context) { context.AddElement<InterceptionElement>("interception"); context.AddElement<InterceptorElement>("interceptor"); context.AddElement<AddInterfaceElement>("addInterface"); context.AddElement<InterceptionBehaviorElement>("interceptionBehavior"); context.AddElement<PolicyInjectionElement>("policyInjection"); context.AddElement<InterceptorsElement>("interceptors"); }
private static void AddElements(SectionExtensionContext context) { context.AddElement <InterceptionElement>("interception"); context.AddElement <InterceptorElement>("interceptor"); context.AddElement <AddInterfaceElement>("addInterface"); context.AddElement <InterceptionBehaviorElement>("interceptionBehavior"); context.AddElement <PolicyInjectionElement>("policyInjection"); context.AddElement <InterceptorsElement>("interceptors"); }
/// <summary> /// Add the extensions to the section via the context. /// </summary> /// <param name="context">Context object that can be used to add elements and aliases.</param> public override void AddExtensions(SectionExtensionContext context) { ++NumberOfCalls; context.AddAlias <ObjectTakingScalars>("scalarObject"); context.AddElement <ContainerConfigElementOne>("configOne"); context.AddElement <ContainerConfigElementTwo>("configTwo"); context.AddElement <TestInjectionMemberElement>("testInjectionMember"); context.AddElement <SeventeenValueElement>("seventeen"); }
/// <summary> /// Add the extensions to the section via the context. /// </summary> /// <param name="context">Context object that can be used to add elements and aliases.</param> public override void AddExtensions(SectionExtensionContext context) { ++NumberOfCalls; context.AddAlias<ObjectTakingScalars>("scalarObject"); context.AddElement<ContainerConfigElementOne>("configOne"); context.AddElement<ContainerConfigElementTwo>("configTwo"); context.AddElement<TestInjectionMemberElement>("testInjectionMember"); context.AddElement<SeventeenValueElement>("seventeen"); }
private static void AddAliases(SectionExtensionContext context) { context.AddAlias <Interception>("Interception"); context.AddAlias <IMatchingRule>("IMatchingRule"); context.AddAlias <ICallHandler>("ICallHandler"); context.AddAlias <CustomAttributeMatchingRule>("CustomAttributeMatchingRule"); context.AddAlias <MemberNameMatchingRule>("MemberNameMatchingRule"); context.AddAlias <NamespaceMatchingRule>("NamespaceMatchingRule"); context.AddAlias <ParameterTypeMatchingRule>("ParameterTypeMatchingRule"); context.AddAlias <PropertyMatchingRule>("PropertyMatchingRule"); context.AddAlias <TagAttributeMatchingRule>("TagAttributeMatchingRule"); context.AddAlias <TypeMatchingRule>("TypeMatchingRule"); context.AddAlias <VirtualMethodInterceptor>("VirtualMethodInterceptor"); context.AddAlias <InterfaceInterceptor>("InterfaceInterceptor"); context.AddAlias <IInterceptionBehavior>("IInterceptionBehavior"); context.AddAlias <PolicyInjectionBehavior>("PolicyInjectionBehavior"); }
private static void AddAliases(SectionExtensionContext context) { context.AddAlias<Interception>("Interception"); context.AddAlias<IMatchingRule>("IMatchingRule"); context.AddAlias<ICallHandler>("ICallHandler"); context.AddAlias<AssemblyMatchingRule>("AssemblyMatchingRule"); context.AddAlias<CustomAttributeMatchingRule>("CustomAttributeMatchingRule"); context.AddAlias<MemberNameMatchingRule>("MemberNameMatchingRule"); context.AddAlias<NamespaceMatchingRule>("NamespaceMatchingRule"); context.AddAlias<ParameterTypeMatchingRule>("ParameterTypeMatchingRule"); context.AddAlias<PropertyMatchingRule>("PropertyMatchingRule"); context.AddAlias<TagAttributeMatchingRule>("TagAttributeMatchingRule"); context.AddAlias<TypeMatchingRule>("TypeMatchingRule"); context.AddAlias<VirtualMethodInterceptor>("VirtualMethodInterceptor"); context.AddAlias<InterfaceInterceptor>("InterfaceInterceptor"); context.AddAlias<TransparentProxyInterceptor>("TransparentProxyInterceptor"); context.AddAlias<IInterceptionBehavior>("IInterceptionBehavior"); context.AddAlias<PolicyInjectionBehavior>("PolicyInjectionBehavior"); }
public override void AddExtensions(SectionExtensionContext context) { context.AddElement<MethodCallParameterValueElement>("methodCall"); }
public override void AddExtensions(SectionExtensionContext context) { context.AddElement<RegistryParameterValueElement>("registry"); }
/// <summary> /// Add the extensions to the section via the context. /// </summary> /// <param name="context">Context object that can be used to add elements and aliases.</param> public override void AddExtensions(SectionExtensionContext context) { AddAliases(context); AddElements(context); }
/// <summary> /// Add alaises and elements to the unity section configuration schema. /// </summary> /// <param name="context">Context to make the add calls on.</param> public override void AddExtensions(SectionExtensionContext context) { context.AddElement <ValidationSourceElement>("validator"); }
public override void AddExtensions(SectionExtensionContext context) { context.AddElement<WebApplicationParameterValueElement>("webApplication"); }
public override void AddExtensions(SectionExtensionContext context) { AddElements(context); }
public override void AddExtensions(SectionExtensionContext context) { context.AddElement<EnvironmentParameterValueElement>("environment"); }
/// <summary> /// Add the extensions to the section via the context. /// </summary> /// <param name="context">Context object that can be used to add elements and aliases.</param> public abstract void AddExtensions(SectionExtensionContext context);
public override void AddExtensions(SectionExtensionContext context) { context.AddElement<CallContextParameterValueElement>("callContext"); }
/// <summary> /// Add elements to the context. /// </summary> /// <param name="context">Context object that can be used to add elements and aliases.</param> private static void AddElements(SectionExtensionContext context) { context.AddElement <EventSubscriptionConfigurationElement>("subscription"); context.AddElement <EventPublicationConfigurationElement>("publication"); }
public override void AddExtensions(SectionExtensionContext context) { context.AddElement<AppDomainParameterValueElement>("appDomain"); }
public override void AddExtensions(SectionExtensionContext context) { context.AddElement<WebRequestParameterValueElement>("webRequest"); }
private void AddElements(SectionExtensionContext context) { context.AddElement<BetamaxElement>("betamax"); }
/// <summary> /// Add the extensions to the section via the context. /// </summary> /// <param name="context">Context object that can be used to add elements and aliases.</param> public abstract void AddExtensions(SectionExtensionContext context);
private void AddElements(SectionExtensionContext context) { context.AddElement <BetamaxElement>("betamax"); }
public override void AddExtensions(SectionExtensionContext context) { context.AddElement<MemoryCacheParameterValueElement>("memoryCache"); }
public override void AddExtensions(SectionExtensionContext context) { context.AddElement<DbParameterValueElement>("db"); }
public override void AddExtensions(SectionExtensionContext context) { context.AddElement <AutoInterceptionElement>("autoInterception"); //扩展为了能够使用该配置元素 context.AddAlias <AutoInterception>("AutoInterception"); //扩展为了能够在配置文件中使用该容器扩展 }
/// <summary> /// Adds the extensions. /// </summary> /// <param name="context">The context.</param> public override void AddExtensions(SectionExtensionContext context) { context.AddElement<AutoInterceptionElement>("autoInterception"); context.AddAlias<AutoInterception>("AutoInterception"); }
/// <summary> /// Add alaises and elements to the unity section configuration schema. /// </summary> /// <param name="context">Context to make the add calls on.</param> public override void AddExtensions(SectionExtensionContext context) { context.AddElement<ValidationSourceElement>("validator"); }