Exemplo n.º 1
0
		public Client(Gs2.Unity.Util.Profile profile)
		{
			_profile = profile;
			_client = new Gs2NewsWebSocketClient(profile.Gs2Session);
			if (profile.checkRevokeCertificate)
			{
				_restClient = new Gs2NewsRestClient(profile.Gs2RestSession);
			}
			else
			{
				_restClient = new Gs2NewsRestClient(profile.Gs2RestSession, new DisabledCertificateHandler());
			}
		}
Exemplo n.º 2
0
 public Client(Gs2.Unity.Util.Profile profile)
 {
     _profile    = profile;
     _client     = new Gs2NewsWebSocketClient(profile.Gs2Session);
     _restClient = new Gs2NewsRestClient(profile.Gs2RestSession);
 }