Click or drag to resize

IReplayManagerStartReplayScenario Method

Starts playing a predefined scenario

Namespace: Sportradar.OddsFeed.SDK.API
Assembly: Sportradar.OddsFeed.SDK.API (in Sportradar.OddsFeed.SDK.API.dll) Version: 1.59.0.0 (1.59.0.0)
Syntax
C#
IReplayResponse StartReplayScenario(
	int scenarioId,
	int speed = 10,
	int maxDelay = 10000,
	int? producerId = null,
	bool? rewriteTimestamps = null
)

Parameters

scenarioId  Int32
The identifier of the scenario that should be played
speed  Int32  (Optional)
The speed factor of the replay
maxDelay  Int32  (Optional)
The maximum delay between messages in milliseconds
producerId  NullableInt32  (Optional)
The id of the producer from which we want to get messages, or null for messages from all producers
rewriteTimestamps  NullableBoolean  (Optional)
Should the timestamp in messages be rewritten with current time

Return Value

IReplayResponse
Returns an IReplayResponse
Remarks
Start replay the event from replay queue. Events are played in the order they were played in reality, e.g. if there are some events that were played simultaneously in reality, they will be played in parallel as well here on replay server. If not specified, default values speed = 10 and max_delay = 10000 are used. This means that messages will be sent 10x faster than in reality, and that if there was some delay between messages that was longer than 10 seconds it will be reduced to exactly 10 seconds/10 000 ms (this is helpful especially in pre-match odds where delay can be even a few hours or more). If player is already in play, nothing will happen
See Also