Transaction Session ID

Hi all,

I have a question about the transaction Session ID.

According documentation: "Defines a custom property of a transaction connector, which should be set when configuring a transaction source. "

and

Guid VideoOS.Platform.Transact.Services.DataContracts.StartLiveSessionParameters.SourceId

"The id of the transaction source, on which to start a live session. "

My understanding Item Transact key property “TransactConnectorId” is transaction source, which is used to get session id?

I tried to use StartLiveSessionParameters.SourceId =TransactConnectorId and then StartLiveSessionAsync, but I got unknown source, TransactConnectorId is not empty.

Where can I get transaction source from ? Why it is unknown?

Any help would be appreciated.

Thank you :slight_smile:

Hi,

The StartLiveSessionParameters.SourceId is the ID of the transaction source in question (which is part of the MIP configuration – represented with the TransactSourceItem class).

The TransactSourceItem.TransactConnectorId is the ID of the connector that this source uses. The TransactConnectorId is not used when starting a live session.

Given a TransactSourceItem source and an ITransactQueryClient client , the way to start a live session is:

var startLiveSessionParameters = new StartLiveSessionParameters()

{

SourceId = source.FQID.ObjectId,

PrecedingLineCount = …

};

var startLiveSessionResult = await client.StartLiveSessionAsync(startLiveSessionParameters);

var getLiveLinesParameters = new GetLiveLinesParameters()

{

SessionId = startLiveSessionResult.SessionId,

Timeout = …

};

var getLiveLinesResult = await client.GetLiveLinesAsync(getLiveLinesParameters);

Thank you a lot for your answer! I will try :slight_smile: