示例#1
0
文件: Program.cs 项目: qcjxberin/ec
 public void Init(EC.IApplication application)
 {
     application.Disconnected += (o, e) =>
     {
         Beetle.Express.IChannel channel = e.Session.Channel;
         Chat.Signout msg = new Signout();
         msg.Name = channel.Name;
         msg.From = channel.EndPoint.ToString();
         foreach (Beetle.Express.IChannel other in application.Server.GetOnlines())
         {
             if (other != channel)
                 application.Server.Send(msg, other);
         }
     };
 }
示例#2
0
        public async Task <OperationResult <Signout> > Index([FromQuery] string logoutId)
        {
            Utility.ServiceResult <string> result = await passport.SignoutAsync(logoutId);

            if (result.Successful)
            {
                Signout signout = new Signout
                {
                    PostLogoutRedirectUri = result.Data ?? "https://slash.gg"
                };

                return(signout);
            }

            return(BadRequest());
        }
示例#3
0
 public void Init(EC.IApplication application)
 {
     application.Disconnected += (o, e) =>
     {
         Beetle.Express.IChannel channel = e.Session.Channel;
         Chat.Signout            msg     = new Signout();
         msg.Name = channel.Name;
         msg.From = channel.EndPoint.ToString();
         foreach (Beetle.Express.IChannel other in application.Server.GetOnlines())
         {
             if (other != channel)
             {
                 application.Server.Send(msg, other);
             }
         }
     };
 }
示例#4
0
        //Validating Signin Functionality
        internal void ValidateSignin()
        {
            //click first item in menu bar.
            SignedinUsername.Click();
            Thread.Sleep(5000);
            var userlbl = Driver.driver.FindElement(By.XPath(".//*[@class='gh-ua gh-control']/b[1]")).Text;

            if (userlbl == ExcelLibHelpers.ReadData(2, "namedisplay"))
            {
                Console.WriteLine("Test case Passed. User successfully signed in and Username is appearing after sign in.");
            }
            else
            {
                Console.WriteLine("Test case Failed. Username is not appearing after sign in.");
            }
            //click signout
            Signout.Click();
        }
示例#5
0
文件: FrmMain.cs 项目: qcjxberin/ec
 private void OnSignout(Signout e)
 {
     richTextBox1.AppendText(string.Format(">{0} signout @ {1}\r\n", e.Name, e.From));
 }
示例#6
0
文件: FrmMain.cs 项目: zhyzhy782/ec
 private void OnSignout(Signout e)
 {
     richTextBox1.AppendText(string.Format(">{0} signout @ {1}\r\n", e.Name, e.From));
 }