BuiltinMixedProtocolBuiltinMixedConnectionTryCreateService Method |
Called to return an object that supports a particular service.
Namespace: Demo3D.PLC.Comms.BuiltinAssembly: PLC (in PLC.dll) Version: 19.01.00
Syntaxprotected override Object? TryCreateService(
ChannelInstance channelInstance,
Type serviceType,
Object? propertyBag
)
Parameters
- channelInstance ChannelInstance
- The channel on which the service is being requested.
- serviceType Type
- The type of the service being requested.
- propertyBag Object
- Configuration properties.
Return Value
ObjectAn 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