CustomAuthValues









How do I use Custom Auth Values
Below are practical examples compiled from projects for learning and reference purposes

Featured Snippets


File name: ChatClient.cs Copy
854         private bool AuthenticateOnFrontEnd()
855         {
856             if (CustomAuthenticationValues != null)
857             {
858                 var d = new Dictionary {{(byte)ChatParameterCode.Secret, CustomAuthenticationValues.Secret}};
859                 return this.chatPeer.OpCustom((byte)ChatOperationCode.Authenticate, d, true);
860             }
861             else
862             {
863                 Debug.WriteLine("Can't authenticate on front end server. CustomAuthValues is null");
864             }
865             return false;
866         }

CustomAuthValues 100 lượt xem

Gõ tìm kiếm nhanh...