Click or drag to resize

HostUtilsGetPlatformServiceT Method

For internal use only. Loads an assembly for dependency injection via IPlatformServiceLocator.

Namespace:  Rhino.Runtime
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 6.0
Syntax
public static T GetPlatformService<T>(
	string assemblyPath = null,
	string typeFullName = null
)
where T : class

Parameters

assemblyPath (Optional)
Type: SystemString
The relative path of the assembly, relative to the position of RhinoCommon.dll
typeFullName (Optional)
Type: SystemString
The full name of the type that is IPlatformServiceLocator. This is optional.

Type Parameters

T
The type of the service to be instantiated.

Return Value

Type: T
An instance, or null.
See Also