Ejemplo n.º 1
0
        public static void MakeTestable(this IRestClient client, ITestOutputHelper testOutputHelper = null)
        {
            client.OnWarning  = s => testOutputHelper?.WriteLine(s);
            client.OnError    = e => { throw e; };
            client.MaxRetries = 0;

            Certificator.AllowFrom(client.Credentials.ServerThumbprint);
        }
Ejemplo n.º 2
0
        public AutofacSlimCreateOperator()
        {
            var cfg = UploaderConfigFile.Parse(UploaderCfg.Localhost);

            Certificator.AllowFrom(cfg.CertificateThumb);

            _container = ContainerFactory.Build(cfg);
        }
Ejemplo n.º 3
0
 void Awake()
 {
     _certificator = FindObjectOfType<Certificator>();
     _certificator.onLoginFailed = reason => { noticeView.text = reason; };
 }
Ejemplo n.º 4
0
 public override void AllowUntrustedCertificate(string serverThumbprint)
 => Certificator.AllowFrom(serverThumbprint);