/// <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");
        }
Example #2
0
        /// <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 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");
 }
		public override void AddExtensions(SectionExtensionContext context)
		{
			context.AddElement<EnvironmentParameterValueElement>("environment");
		}
		public override void AddExtensions(SectionExtensionContext context)
		{
			context.AddElement<MethodCallParameterValueElement>("methodCall");
		}
 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");
 }
		public override void AddExtensions(SectionExtensionContext context)
		{
			context.AddElement<WebApplicationParameterValueElement>("webApplication");
		}
		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");
		}
		public override void AddExtensions(SectionExtensionContext context)
		{
			context.AddElement<RegistryParameterValueElement>("registry");
		}
Example #15
0
 private void AddElements(SectionExtensionContext context)
 {
     context.AddElement <BetamaxElement>("betamax");
 }
		private void AddElements(SectionExtensionContext context)
		{
			context.AddElement<BetamaxElement>("betamax");
		}
		public override void AddExtensions(SectionExtensionContext context)
		{
			context.AddElement<DbParameterValueElement>("db");
		}
		public override void AddExtensions(SectionExtensionContext context)
		{
			context.AddElement<MemoryCacheParameterValueElement>("memoryCache");
		}
 /// <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");
 }