public static void SetActor( this IHaveExtensibleMetada e, ICommand fromCommand) => e.Metadata.Actor = fromCommand.Principal .Identity .IfNotNull() .Then(i => i.Name) .ElseDefault();
public static void SetActor(this IHaveExtensibleMetada e, string actor) { e.Metadata.Actor = actor; }