Ejemplo n.º 1
0
        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 = LogProxyFactory.Create <HttpDataRestful>(args);

            object[] args2 =
            {
                "https://api.betradar.com/v1/replay",
                _httpDataRestful,
                0
            };
            _replayManager = LogProxyFactory.Create <ReplayManager>(args2);
        }
Ejemplo n.º 2
0
        public void Init()
        {
            var config = TestConfigurationInternal.GetConfig();

            object[] args =
            {
                new HttpClient(),
                config.AccessToken,
                new Deserializer <response>(),
                5,
                5
            };

            _httpDataRestful = LogInterceptorFactory.Create <HttpDataRestful>(args, null, LoggerType.RestTraffic);
        }