Method CreateServicesContext
CreateServicesContext(INatsClient)
Creates a NATS Services context for the given NATS client.
public static INatsSvcContext CreateServicesContext(this INatsClient client)
Parameters
client
INatsClientThe NATS client for which to create the services context.
Returns
- INatsSvcContext
An instance of INatsSvcContext used for interacting with the NATS Services.
CreateServicesContext(INatsConnection)
Creates a NATS Services context for the given NATS connection.
public static INatsSvcContext CreateServicesContext(this INatsConnection connection)
Parameters
connection
INatsConnectionThe NATS connection for which to create the services context.
Returns
- INatsSvcContext
An instance of INatsSvcContext used for interacting with the NATS Services.