![]() | Factory Class |
Namespace: Cauldron.Activator
The Factory type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | CanRaiseExceptions |
Gets or sets a value that indicates if the Factory is allowed to raise an
exception or not.
|
![]() ![]() | FactoryTypes |
Gets a collection of IFactoryTypeInfo that was found on the entrance assembly and its referencing assemblies.
|
![]() ![]() | RegisteredTypes |
Gets a collection types that is known to the Factory |
![]() ![]() | Resolvers |
Gets a collection of resolvers.
The resolvers are only in effect if there are multiple implementations with the same contract name.
|
Name | Description | |
---|---|---|
![]() ![]() | <>__Create(String, Type) | |
![]() ![]() | <>__Create(Type, Type) | |
![]() ![]() | <>__Create(String, Object, Type) | |
![]() ![]() | <>__Create(Type, Object, Type) | |
![]() ![]() | <>__CreateT(Type) | |
![]() ![]() | <>__CreateT(Object, Type) | |
![]() ![]() | AddType(String, FactoryCreationPolicy, Type, FuncObject, Object) |
Adds a new Type to list of custom types.
|
![]() ![]() | AddType(Type, FactoryCreationPolicy, Type, FuncObject, Object) |
Adds a new Type to list of custom types.
|
![]() ![]() | AddTypes |
Adds a collection of IFactoryTypeInfo to the list fo custom types.
|
![]() ![]() | CreateFirst(String) |
Creates an instance of the specified type depending on the ComponentAttribute.
If multiple implementations are available, the Factory will prefer the implementation with the highest priority.
|
![]() ![]() | CreateFirst(Type) |
Creates an instance of the specified type depending on the ComponentAttribute.
If multiple implementations are available, the Factory will prefer the implementation with the highest priority.
|
![]() ![]() | CreateFirst(String, Object) |
Creates an instance of the specified type depending on the ComponentAttribute.
If multiple implementations are available, the Factory will prefer the implementation with the highest priority.
|
![]() ![]() | CreateFirst(Type, Object) |
Creates an instance of the specified type depending on the ComponentAttribute.
If multiple implementations are available, the Factory will prefer the implementation with the highest priority.
|
![]() ![]() | CreateFirstT |
Creates an instance of the specified type depending on the ComponentAttribute.
If multiple implementations are available, the Factory will prefer the implementation with the highest priority.
|
![]() ![]() | CreateFirstT(Object) |
Creates an instance of the specified type depending on the ComponentAttribute.
If multiple implementations are available, the Factory will prefer the implementation with the highest priority.
|
![]() ![]() | CreateMany(String) |
Creates instances of the specified type depending on the ComponentAttribute |
![]() ![]() | CreateMany(Type) |
Creates instances of the specified type depending on the ComponentAttribute |
![]() ![]() | CreateMany(String, Object) |
Creates instances of the specified type depending on the ComponentAttribute |
![]() ![]() | CreateMany(Type, Object) |
Creates instances of the specified type depending on the ComponentAttribute |
![]() ![]() | CreateManyT |
Creates instances of the specified type depending on the ComponentAttribute |
![]() ![]() | CreateManyT(Object) |
Creates instances of the specified type depending on the ComponentAttribute |
![]() ![]() | CreateManyOrdered(String) |
Creates instances of the specified type depending on the ComponentAttribute.
The returned values are ordered by the defined priority.
|
![]() ![]() | CreateManyOrdered(Type) |
Creates instances of the specified type depending on the ComponentAttribute
The returned values are ordered by the defined priority.
|
![]() ![]() | CreateManyOrdered(String, Object) |
Creates instances of the specified type depending on the ComponentAttribute.
The returned values are ordered by the defined priority.
|
![]() ![]() | CreateManyOrdered(Type, Object) |
Creates instances of the specified type depending on the ComponentAttribute
The returned values are ordered by the defined priority.
|
![]() ![]() | CreateManyOrderedT |
Creates instances of the specified type depending on the ComponentAttribute
The returned values are ordered by the defined priority.
|
![]() ![]() | CreateManyOrderedT(Object) |
Creates instances of the specified type depending on the ComponentAttribute
The returned values are ordered by the defined priority.
|
![]() ![]() | Destroy |
Performs application-defined tasks associated with freeing, releasing, or resetting
unmanaged resources.
Not threadsafe.
|
![]() ![]() | Destroy(String) |
Performs application-defined tasks associated with freeing, releasing, or resetting
unmanaged resources.
Not threadsafe.
|
![]() ![]() | Destroy(Type) |
Performs application-defined tasks associated with freeing, releasing, or resetting
unmanaged resources.
Not threadsafe.
|
![]() ![]() | DestroyT |
Performs application-defined tasks associated with freeing, releasing, or resetting
unmanaged resources.
Not threadsafe.
|
![]() ![]() | HasContract(String) |
Determines whether a contract exist
|
![]() ![]() | HasContract(Type) |
Determines whether a contract exist
|
![]() ![]() | HasContractT |
Determines whether a contract exist
|
![]() ![]() | RemoveType(String, Type) |
Removes a Type from the list of manually added types.
Not threadsafe.
|
![]() ![]() | RemoveType(Type, Type) |
Removes a Type from the list of manually added types.
Not threadsafe.
|
Name | Description | |
---|---|---|
![]() ![]() | ObjectCreated |
Occures if an object was created. This will only be invoked if the created object has set its InvokeOnObjectCreationEvent to true.
|
![]() ![]() | Rebuilt |
Occures after the Factory was initialized or reloaded.
A Factory reload always occures if LoadedAssemblyChanged is invoked.
|