Click or drag to resize

BuiltinMixedProtocolBuiltinMixedConnectionTryCreateService Method

Called to return an object that supports a particular service.

Namespace:  Demo3D.PLC.Comms.Builtin
Assembly:  PLC (in PLC.dll) Version: 15.0.2.11458
Syntax
C#
protected override Object? TryCreateService(
	ChannelInstance channelInstance,
	Type serviceType,
	Object? propertyBag
)

Parameters

channelInstance
Type: Demo3D.NetChannelInstance
The channel on which the service is being requested.
serviceType
Type: SystemType
The type of the service being requested.
propertyBag
Type: SystemObject
Configuration properties.

Return Value

Type: Object
An object that implements serviceType.
Remarks
The default implementation of TryCreateService normally returns 'this' for services requested, but it doesn't have to. You can override TryCreateService to return any object that implements a service.
See Also