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