protected virtual void OnRoleChanged(RoleChangeArgs e) { RoleChanged?.Invoke(this, e); }
public static void AuthenticateUser(UserRole value) { _authenticatedUser = value; RoleChanged?.Invoke(null, new RoleChangedEventArgs(value)); }
protected void OnRoleChanged(Role role) { TheTrace.TraceInformation($"[{_meAsAPeer.ShortName}] Role changed to {role}"); _commands = new BlockingCollection <StateMachineCommandRequest>(); // reset commands RoleChanged?.Invoke(this, new RoleChangedEventArgs(role)); }
public void OnRoleChange(string oldRole, string newRole) { role = newRole; RoleChanged?.Invoke(newRole); }