November Happy Hour will be moved to Thursday December 5th.

Interface IContainer

Provides access to services of a wrapped inversion of control container.

Namespace: EPiServer.Shell.Composition
Assembly: EPiServer.Shell.dll
Version: 10.10.4
Syntax
[Obsolete("Use EPiServer.ServiceLocation.ServiceLocator instead")]
public interface IContainer

Methods

AddAssemblyToCatalog(Assembly)

Adds the assembly to catalog.

Declaration
[Obsolete("Use EPiServer.ServiceLocation.ServiceLocator instead")]
void AddAssemblyToCatalog(Assembly assemblyToAdd)
Parameters
Type Name Description
System.Reflection.Assembly assemblyToAdd

The assembly to add to the catalog.

ExcludePart(Type)

Excludes an ComposablePart from the Part Catalog, the part will not be used when composing a batch

Declaration
[Obsolete("Use EPiServer.ServiceLocation.ServiceLocator instead")]
void ExcludePart(Type typeToExclude)
Parameters
Type Name Description
System.Type typeToExclude

Type to exclude

GetExportedValue<T>()

Gets an exported service from the composition container. The method will throw an exception if no matching object is available.

Declaration
[Obsolete("Use EPiServer.ServiceLocation.ServiceLocator instead")]
T GetExportedValue<T>()
Returns
Type Description
T

The exported object.

Type Parameters
Name Description
T

The type of service to retrieve.

SatisfyImportsOnce(Object)

Satisfies the imports of the specified attributed object exactly once and they will not ever be recomposed.

Declaration
[Obsolete("Use EPiServer.ServiceLocation.ServiceLocator instead")]
void SatisfyImportsOnce(object attributedPart)
Parameters
Type Name Description
System.Object attributedPart

The attributed object to set the imports.

Extension Methods