Interface IServiceCollection
Specifies the contract of service entry sets.
Namespace: Solti.Utils.DI.Interfaces
Assembly: Solti.Utils.DI.Interfaces.dll
Syntax
public interface IServiceCollection
Remarks
Methods
Contains(IServiceId)
Determines if the collection contains entry with the specific id
Declaration
bool Contains(IServiceId id)
Parameters
Type | Name | Description |
---|---|---|
IServiceId | id |
Returns
Type | Description |
---|---|
Boolean |
MakeReadOnly()
Makes this collection read only.
Declaration
void MakeReadOnly()
Remove(IServiceId)
Removes the entry associated with the given id
.
Declaration
bool Remove(IServiceId id)
Parameters
Type | Name | Description |
---|---|---|
IServiceId | id |
Returns
Type | Description |
---|---|
Boolean |
TryFind(IServiceId)
Tries to find the entry associated with the given id
.
Declaration
AbstractServiceEntry TryFind(IServiceId id)
Parameters
Type | Name | Description |
---|---|---|
IServiceId | id |
Returns
Type | Description |
---|---|
AbstractServiceEntry |