Interface IPartBuilder
Interface for part builder.
Namespace: Kephas.Composition.Conventions
Assembly: Kephas.Core.dll
Syntax
public interface IPartBuilderMethods
| Improve this Doc View SourceAllowMultiple(Boolean)
Indicates that this service allows multiple registrations.
Declaration
IPartBuilder AllowMultiple(bool value)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | value | True if multiple service registrations are allowed, false otherwise. | 
Returns
| Type | Description | 
|---|---|
| IPartBuilder | A part builder allowing further configuration of the part. | 
Scoped()
Mark the part as being shared within the scope.
Declaration
IPartBuilder Scoped()Returns
| Type | Description | 
|---|---|
| IPartBuilder | A part builder allowing further configuration of the part. | 
Singleton()
Mark the part as being shared within the entire composition.
Declaration
IPartBuilder Singleton()Returns
| Type | Description | 
|---|---|
| IPartBuilder | A part builder allowing further configuration of the part. |