Example #1
0
 protected virtual void OnRoleChanged(RoleChangeArgs e)
 {
     RoleChanged?.Invoke(this, e);
 }
 public static void AuthenticateUser(UserRole value)
 {
     _authenticatedUser = value;
     RoleChanged?.Invoke(null, new RoleChangedEventArgs(value));
 }
Example #3
0
 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));
 }
Example #4
0
 public void OnRoleChange(string oldRole, string newRole)
 {
     role = newRole;
     RoleChanged?.Invoke(newRole);
 }