Exemplo n.º 1
0
 /// <summary>
 /// Add an extension object to the container.
 /// </summary>
 /// <param name="extension"><see cref="UnityContainerExtension"/> to add.</param>
 /// <returns>The <see cref="UnityContainer"/> object that this method was called on (this in C#, Me in Visual Basic).</returns>
 public override IUnityContainer AddExtension(UnityContainerExtension extension)
 {
     extensions.Add(extension);
     extension.InitializeExtension(new ExtensionContextImpl(this));
     lock (cachedStrategiesLock)
     {
         cachedStrategies = null;
     }
     return(this);
 }
Exemplo n.º 2
0
        public IUnityContainer AddExtension(UnityContainerExtension extension)
        {
            Microsoft.Practices.Unity.Utility.Guard.ArgumentNotNull(extensions, "extensions");

            extensions.Add(extension);
            extension.InitializeExtension(new ExtensionContextImpl(this));
            lock (cachedStrategiesLock)
            {
                cachedStrategies = null;
            }
            return(this);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Add an extension object to the container.
        /// </summary>
        /// <param name="extension"><see cref="UnityContainerExtension"/> to add.</param>
        /// <returns>The <see cref="UnityContainer"/> object that this method was called on (this in C#, Me in Visual Basic).</returns>
        public override IUnityContainer AddExtension(UnityContainerExtension extension)
        {

            extensions.Add(extension);
            extension.InitializeExtension(new ExtensionContextImpl(this));
            lock(cachedStrategiesLock)
            {
                cachedStrategies = null;
            }
            return this;
        }
 public IUnityContainer AddExtension(UnityContainerExtension extension)
 {
     extension.InitializeExtension(this.extensionImpl);
     return this;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Add an extension object to the container.
 /// </summary>
 /// <param name="extension"><see cref="UnityContainerExtension"/> to add.</param>
 /// <returns>The <see cref="UnityContainer"/> object that this method was called on (this in C#, Me in Visual Basic).</returns>
 public abstract IUnityContainer AddExtension(UnityContainerExtension extension);
		public IUnityContainer AddExtension(UnityContainerExtension extension) {
			return container.AddExtension(extension);
		}
 public IUnityContainer AddExtension(UnityContainerExtension extension)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 8
0
 /// <summary>
 /// Add an extension object to the container.
 /// </summary>
 /// <param name="extension"><see cref="UnityContainerExtension"/> to add.</param>
 /// <returns>The <see cref="UnityContainer"/> object that this method was called on (this in C#, Me in Visual Basic).</returns>
 public override IUnityContainer AddExtension(UnityContainerExtension extension)
 {
     extensions.Add(extension);
     extension.InitializeExtension(new ExtensionContextImpl(this));
     return(this);
 }
Exemplo n.º 9
0
 public IUnityContainer AddExtension(UnityContainerExtension extension);
Exemplo n.º 10
0
 public IUnityContainer AddExtension(UnityContainerExtension extension)
 {
     ConfigActions.Add(ConfigurationActionRecord.AddExtensionAction(extension.GetType()));
     return this;
 }
Exemplo n.º 11
0
        public IUnityContainer AddExtension(UnityContainerExtension extension)
        {
            Microsoft.Practices.Unity.Utility.Guard.ArgumentNotNull(extensions, "extensions");

            extensions.Add(extension);
            extension.InitializeExtension(new ExtensionContextImpl(this));
            lock (cachedStrategiesLock)
            {
                cachedStrategies = null;
            }
            return this;
        }