public void Init() { ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12; var config = TestConfigurationInternal.GetConfig(); object[] args = { new HttpClient(), config.AccessToken, new Deserializer <response>(), 5, 15 }; _httpDataRestful = LogInterceptorFactory.Create <HttpDataRestful>(args, null, LoggerType.RestTraffic); object[] args2 = { "https://stgapi.betradar.com/v1/replay", _httpDataRestful, 0 }; _replayManager = LogInterceptorFactory.Create <ReplayManager>(args2, m => m.Name.Contains("Async"), LoggerType.RestTraffic); }
/// <summary> /// Initializes a new instance of the <see cref="ReplayManager"/> class /// </summary> /// <param name="replayApiHost">The API host of the Replay Server</param> /// <param name="dataRestful">The <see cref="IDataRestful"/> used to make REST requests</param> /// <param name="nodeId">The node id used to connect to replay server</param> public ReplayManager(string replayApiHost, IDataRestful dataRestful, int nodeId) { Guard.Argument(replayApiHost, nameof(replayApiHost)).NotNull().NotEmpty(); Guard.Argument(dataRestful, nameof(dataRestful)).NotNull(); _apiHost = replayApiHost; _dataRestful = dataRestful; _nodeId = nodeId; }
public void Init() { var config = TestConfigurationInternal.GetConfig(); object[] args = { new HttpClient(), config.AccessToken, new Deserializer <response>(), 5, 15 }; _httpDataRestful = LogProxyFactory.Create <IDataRestful>(args); object[] args2 = { "https://api.betradar.com/v1/replay", _httpDataRestful, 0 }; _replayManager = LogProxyFactory.Create <IReplayManager>(args2); }
/// <summary> /// Initializes a new instance of the <see cref="ReplayManager"/> class /// </summary> /// <param name="replayApiHost">The API host of the Replay Server</param> /// <param name="dataRestful">The <see cref="IDataRestful"/> used to make REST requests</param> /// <param name="nodeId">The node id used to connect to replay server</param> public ReplayManager(string replayApiHost, IDataRestful dataRestful, int nodeId) { _apiHost = replayApiHost; _dataRestful = dataRestful; _nodeId = nodeId; }