Click or drag to resize

GameModeServiceContainerAddServiceTServiceType Method (TServiceType)

Adds the service of the specified TServiceType.

Namespace:  SampSharp.GameMode
Assembly:  SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public void AddService<TServiceType>(
	TServiceType service
)
where TServiceType : IService

Parameters

service
Type: TServiceType
The service.

Type Parameters

TServiceType
Type of the service.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if service is null.
ArgumentExceptionserviceType must be of type IService
See Also