Class ApplicationServiceClient
Application service client.
Inheritance
Implements
Inherited Members
Namespace: MAT.Atlas.Automation.Client.Services
Assembly: MAT.Atlas.Automation.Client.dll
Syntax
public sealed class ApplicationServiceClient : AutomationServiceClientWithCallbackBase<IApplicationService, IApplicationCallbackService>, IAutomationServiceMethodHandlers<IApplicationService>, IDisposable, IApplicationServiceClient
Constructors
ApplicationServiceClient()
Constructor.
Declaration
public ApplicationServiceClient()
ApplicationServiceClient(String)
Constructor.
Declaration
public ApplicationServiceClient(string clientName)
Parameters
Type | Name | Description |
---|---|---|
System.String | clientName | Client name. |
Methods
add_OnClientConnected(ApplicationServiceClient.OnClientConnectedDelegate)
Declaration
public void add_OnClientConnected(ApplicationServiceClient.OnClientConnectedDelegate value)
Parameters
Type | Name | Description |
---|---|---|
ApplicationServiceClient.OnClientConnectedDelegate | value |
add_OnExit(ApplicationServiceClient.OnExitDelegate)
Declaration
public void add_OnExit(ApplicationServiceClient.OnExitDelegate value)
Parameters
Type | Name | Description |
---|---|---|
ApplicationServiceClient.OnExitDelegate | value |
add_OnMessageReceived(ApplicationServiceClient.OnMessageReceivedDelegate)
Declaration
public void add_OnMessageReceived(ApplicationServiceClient.OnMessageReceivedDelegate value)
Parameters
Type | Name | Description |
---|---|---|
ApplicationServiceClient.OnMessageReceivedDelegate | value |
add_OnNewLap(ApplicationServiceClient.OnNewLapDelegate)
Declaration
public void add_OnNewLap(ApplicationServiceClient.OnNewLapDelegate value)
Parameters
Type | Name | Description |
---|---|---|
ApplicationServiceClient.OnNewLapDelegate | value |
add_OnNewSessionEvent(ApplicationServiceClient.OnNewSessionEventDelegate)
Declaration
public void add_OnNewSessionEvent(ApplicationServiceClient.OnNewSessionEventDelegate value)
Parameters
Type | Name | Description |
---|---|---|
ApplicationServiceClient.OnNewSessionEventDelegate | value |
add_OnSessionLoaded(ApplicationServiceClient.OnSessionLoadedDelegate)
Declaration
public void add_OnSessionLoaded(ApplicationServiceClient.OnSessionLoadedDelegate value)
Parameters
Type | Name | Description |
---|---|---|
ApplicationServiceClient.OnSessionLoadedDelegate | value |
add_OnSessionRemoved(ApplicationServiceClient.OnSessionRemovedDelegate)
Declaration
public void add_OnSessionRemoved(ApplicationServiceClient.OnSessionRemovedDelegate value)
Parameters
Type | Name | Description |
---|---|---|
ApplicationServiceClient.OnSessionRemovedDelegate | value |
add_OnTelemetryStarted(ApplicationServiceClient.OnTelemetryStartedDelegate)
Declaration
public void add_OnTelemetryStarted(ApplicationServiceClient.OnTelemetryStartedDelegate value)
Parameters
Type | Name | Description |
---|---|---|
ApplicationServiceClient.OnTelemetryStartedDelegate | value |
add_OnTelemetryStopped(ApplicationServiceClient.OnTelemetryStoppedDelegate)
Declaration
public void add_OnTelemetryStopped(ApplicationServiceClient.OnTelemetryStoppedDelegate value)
Parameters
Type | Name | Description |
---|---|---|
ApplicationServiceClient.OnTelemetryStoppedDelegate | value |
Connect(String)
Connect a client to the application service.
Declaration
public void Connect(string clientName)
Parameters
Type | Name | Description |
---|---|---|
System.String | clientName | Name of client. |
Disconnect()
Disconnect a client from the application service.
Declaration
public void Disconnect()
GetAutomationCallbackService()
Get an instance of the automation callback service.
Declaration
protected override IApplicationCallbackService GetAutomationCallbackService()
Returns
Type | Description |
---|---|
IApplicationCallbackService | Automation service interface. |
Overrides
GetVersion()
Get the application version.
Declaration
public string GetVersion()
Returns
Type | Description |
---|---|
System.String | Application version string. |
LoadFileSessionEx(ObjectId, String, Int64)
Load a file session into a set and its associate if flag = 1.
Declaration
public void LoadFileSessionEx(ObjectId setId, string filePath, long flag)
Parameters
Type | Name | Description |
---|---|---|
ObjectId | setId | Id of set to load sessions. |
System.String | filePath | Session file path to load. |
System.Int64 | flag | 0x00000001- load session with ssv |
LoadFileSessions(ObjectId, String[])
Load a number of file sessions into a set.
Declaration
public void LoadFileSessions(ObjectId setId, string[] filePaths)
Parameters
Type | Name | Description |
---|---|---|
ObjectId | setId | Id of set to load sessions. |
System.String[] | filePaths | Sessions to load. |
LoadServiceSession(ObjectId, ObjectId, ObjectId)
Load a session from a Service data source
Declaration
public void LoadServiceSession(ObjectId setId, ObjectId connectionId, ObjectId sessionId)
Parameters
Type | Name | Description |
---|---|---|
ObjectId | setId | Id of set the session will be loaded into. |
ObjectId | connectionId | Id of the connection to use to load the session |
ObjectId | sessionId | Id of the session to load |
LoadSqlRaceSessions(ObjectId, String[], String[])
Load a number of file sessions into a set.
Declaration
public void LoadSqlRaceSessions(ObjectId setId, string[] keys, string[] connectionStrings)
Parameters
Type | Name | Description |
---|---|---|
ObjectId | setId | Id of set to load sessions. |
System.String[] | keys | Keys of sessions to load. |
System.String[] | connectionStrings | Connection strings of sessions to load. |
OnDisposeManagedResources()
Override in derived classes to free managed resources.
Declaration
protected override void OnDisposeManagedResources()
Overrides
remove_OnClientConnected(ApplicationServiceClient.OnClientConnectedDelegate)
Declaration
public void remove_OnClientConnected(ApplicationServiceClient.OnClientConnectedDelegate value)
Parameters
Type | Name | Description |
---|---|---|
ApplicationServiceClient.OnClientConnectedDelegate | value |
remove_OnExit(ApplicationServiceClient.OnExitDelegate)
Declaration
public void remove_OnExit(ApplicationServiceClient.OnExitDelegate value)
Parameters
Type | Name | Description |
---|---|---|
ApplicationServiceClient.OnExitDelegate | value |
remove_OnMessageReceived(ApplicationServiceClient.OnMessageReceivedDelegate)
Declaration
public void remove_OnMessageReceived(ApplicationServiceClient.OnMessageReceivedDelegate value)
Parameters
Type | Name | Description |
---|---|---|
ApplicationServiceClient.OnMessageReceivedDelegate | value |
remove_OnNewLap(ApplicationServiceClient.OnNewLapDelegate)
Declaration
public void remove_OnNewLap(ApplicationServiceClient.OnNewLapDelegate value)
Parameters
Type | Name | Description |
---|---|---|
ApplicationServiceClient.OnNewLapDelegate | value |
remove_OnNewSessionEvent(ApplicationServiceClient.OnNewSessionEventDelegate)
Declaration
public void remove_OnNewSessionEvent(ApplicationServiceClient.OnNewSessionEventDelegate value)
Parameters
Type | Name | Description |
---|---|---|
ApplicationServiceClient.OnNewSessionEventDelegate | value |
remove_OnSessionLoaded(ApplicationServiceClient.OnSessionLoadedDelegate)
Declaration
public void remove_OnSessionLoaded(ApplicationServiceClient.OnSessionLoadedDelegate value)
Parameters
Type | Name | Description |
---|---|---|
ApplicationServiceClient.OnSessionLoadedDelegate | value |
remove_OnSessionRemoved(ApplicationServiceClient.OnSessionRemovedDelegate)
Declaration
public void remove_OnSessionRemoved(ApplicationServiceClient.OnSessionRemovedDelegate value)
Parameters
Type | Name | Description |
---|---|---|
ApplicationServiceClient.OnSessionRemovedDelegate | value |
remove_OnTelemetryStarted(ApplicationServiceClient.OnTelemetryStartedDelegate)
Declaration
public void remove_OnTelemetryStarted(ApplicationServiceClient.OnTelemetryStartedDelegate value)
Parameters
Type | Name | Description |
---|---|---|
ApplicationServiceClient.OnTelemetryStartedDelegate | value |
remove_OnTelemetryStopped(ApplicationServiceClient.OnTelemetryStoppedDelegate)
Declaration
public void remove_OnTelemetryStopped(ApplicationServiceClient.OnTelemetryStoppedDelegate value)
Parameters
Type | Name | Description |
---|---|---|
ApplicationServiceClient.OnTelemetryStoppedDelegate | value |
RemoveSession(SessionId)
Remove session.
Declaration
public void RemoveSession(SessionId sessionId)
Parameters
Type | Name | Description |
---|---|---|
SessionId | sessionId | Id of the session to remove. |
ShowMessage(String)
Send text message to other clients.
Declaration
public void ShowMessage(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | Text message to send. |
Remarks
For testing purposes only.
Events
OnClientConnected
Client has connected event.
Declaration
public event ApplicationServiceClient.OnClientConnectedDelegate OnClientConnected
Event Type
Type | Description |
---|---|
ApplicationServiceClient.OnClientConnectedDelegate |
OnExit
Application has exited event.
Declaration
public event ApplicationServiceClient.OnExitDelegate OnExit
Event Type
Type | Description |
---|---|
ApplicationServiceClient.OnExitDelegate |
OnMessageReceived
Text message from another client has been received.
Declaration
public event ApplicationServiceClient.OnMessageReceivedDelegate OnMessageReceived
Event Type
Type | Description |
---|---|
ApplicationServiceClient.OnMessageReceivedDelegate |
Remarks
For testing purposes only.
OnNewLap
New lap event.
Declaration
public event ApplicationServiceClient.OnNewLapDelegate OnNewLap
Event Type
Type | Description |
---|---|
ApplicationServiceClient.OnNewLapDelegate |
OnNewSessionEvent
New "session event" event.
Declaration
public event ApplicationServiceClient.OnNewSessionEventDelegate OnNewSessionEvent
Event Type
Type | Description |
---|---|
ApplicationServiceClient.OnNewSessionEventDelegate |
OnSessionLoaded
Session loaded event.
Declaration
public event ApplicationServiceClient.OnSessionLoadedDelegate OnSessionLoaded
Event Type
Type | Description |
---|---|
ApplicationServiceClient.OnSessionLoadedDelegate |
OnSessionRemoved
Session removed event.
Declaration
public event ApplicationServiceClient.OnSessionRemovedDelegate OnSessionRemoved
Event Type
Type | Description |
---|---|
ApplicationServiceClient.OnSessionRemovedDelegate |
OnTelemetryStarted
Telemetry started event.
Declaration
public event ApplicationServiceClient.OnTelemetryStartedDelegate OnTelemetryStarted
Event Type
Type | Description |
---|---|
ApplicationServiceClient.OnTelemetryStartedDelegate |
OnTelemetryStopped
Telemetry stopped event.
Declaration
public event ApplicationServiceClient.OnTelemetryStoppedDelegate OnTelemetryStopped
Event Type
Type | Description |
---|---|
ApplicationServiceClient.OnTelemetryStoppedDelegate |