public static IEnumerator FinalizeGs2( Gs2.Unity.Util.Profile profile, FinalizeGs2AccountEvent onFinalizeGs2 ) { Assert.IsNotNull(profile, "profile != null"); Assert.IsNotNull(onFinalizeGs2, "onFinalizeGs2 != null"); yield return(profile.Finalize()); onFinalizeGs2.Invoke(profile); }
public Client(Gs2.Unity.Util.Profile profile) { _profile = profile; _client = new Gs2ShowcaseWebSocketClient(profile.Gs2Session); if (profile.checkRevokeCertificate) { _restClient = new Gs2ShowcaseRestClient(profile.Gs2RestSession); } else { _restClient = new Gs2ShowcaseRestClient(profile.Gs2RestSession, new DisabledCertificateHandler()); } }
public Client(Gs2.Unity.Util.Profile profile) { _profile = profile; _client = new Gs2NewsWebSocketClient(profile.Gs2Session); _restClient = new Gs2NewsRestClient(profile.Gs2RestSession); }