ProtocolSocketGetServiceT Method |
Returns an object that implements a specific API, or throws an exception.
For example, an IO API such as IPacketIOService.
Namespace: Demo3D.NetAssembly: Demo3D.IO (in Demo3D.IO.dll) Version: 19.00.00
Syntaxpublic T GetService<T>(
ServiceBindingFlags bindingFlags = ServiceBindingFlags.Default,
string? channelName = null
)
where T : class
Parameters
- bindingFlags ServiceBindingFlags (Optional)
- Flags to direct the search for the requested service.
- channelName String (Optional)
- Specific channel to search, or null for the default channel.
Type Parameters
- T
- The service to find.
Return Value
TThe service implementation.
See Also