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); } }; }
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()); }
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); } } }; }
//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(); }
private void OnSignout(Signout e) { richTextBox1.AppendText(string.Format(">{0} signout @ {1}\r\n", e.Name, e.From)); }