SampSharp
SampSharp
SampSharp.Entities
ServiceCollectionExtensions Class
ServiceCollectionExtensions Methods
AddSystemsInAssembly Method
AddSystemsInAssembly(TTypeInAssembly) Method (IServiceCollection)
AddSystemsInAssembly Method (IServiceCollection)
AddSystemsInAssembly Method (IServiceCollection, Assembly)
ServiceCollectionExtensions
AddSystemsInAssembly Method (IServiceCollection)
Adds the all types which implement
ISystem
in the calling assembly as singletons and enable the systems in the system registry.
Namespace:
SampSharp.Entities
Assembly:
SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
Copy
public
static
IServiceCollection
AddSystemsInAssembly
(
this
IServiceCollection
services
)
Parameters
services
Type:
Microsoft.Extensions.DependencyInjection
IServiceCollection
The service collection to add the systems to.
Return Value
Type:
IServiceCollection
A reference to this instance after the operation has completed.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IServiceCollection
. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic)
or
Extension Methods (C# Programming Guide)
.
See Also
Reference
ServiceCollectionExtensions Class
AddSystemsInAssembly Overload
SampSharp.Entities Namespace