Class IServiceMessagingClientExtensions
Inherited Members
Namespace: Unity.Cloud.Common
Syntax
public static class IServiceMessagingClientExtensions
Methods
AddApiSourceVersionFromAssembly(IServiceMessagingClient, Assembly)
Modifies an instance of IServiceMessagingClient which adds the API source version info to the websocket connection request. The source values are retrieved from the ApiSourceVersionAttribute which must be defined in the calling Assembly.
Declaration
public static void AddApiSourceVersionFromAssembly(this IServiceMessagingClient messagingClient, Assembly assembly)
Parameters
Type | Name | Description |
---|---|---|
IServiceMessagingClient | messagingClient | The client to modify. |
Assembly | assembly | The target assembly. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown if ApiSourceVersionAttribute does not exist or is not initialized in the calling assembly. |
ArgumentNullException | Thrown if |