/// <summary>
 /// Deregister all Processes associated with a name. NOTE: Be very careful
 /// with usage of this function if you didn't handle the registration you
 /// are potentially disconnecting many Processes from their registered name.
 ///
 /// See remarks.
 /// </summary>
 /// <remarks>
 /// Any Process (or dispatcher, or role, etc.) can be registered by a name -
 /// a kind of DNS for ProcessIds.  There can be multiple names associated
 /// with a single ProcessId and multiple ProcessIds associated with a name.
 ///
 /// This function removes all registered ProcessIds for a specific name.
 /// If you wish to deregister all names registered for specific Process then
 /// use Process.deregisterById(pid)
 /// </remarks>
 /// <param name="name">Name of the process to deregister</param>
 public static Unit deregisterByName(ProcessName name) =>
 ActorContext.DeregisterByName($"{Role.Current.Value}-{name.Value}");