public void OnSubmitSignInCredentialsEvent(IEventBase obj) { if (obj is SubmitSignInCredentialsEvent) { SubmitSignInCredentialsEvent signInCred = (SubmitSignInCredentialsEvent)obj; WebServerManager.UpdateSignInCredentials(signInCred.userName, signInCred.email, OnSignInSuccessfully, OnSignInFailed); } }