Ejemplo n.º 1
0
 public void Execute <TRef>(IBuilds <ICommandMessage> message, Ref <TRef> target) where TRef : IHasID <ID>
 => Execute(new Command(message.Build(), ID.FromRef(Check.NotNull(target, nameof(target)))));
Ejemplo n.º 2
0
 public void Execute(IBuilds <ICommandMessage> command, ID?targetID = null)
 => Execute(new Command(command.Build(), targetID));
 public void Add <T>(string commandID, Ref <T> target, IBuilds <ICommandMessage> builder) where T : IHasID <ID>
 {
     Add(ID.Parse(commandID), ID.FromRef(target), builder.Build());
 }
 public void Add(string commandID, ID?target, IBuilds <ICommandMessage> builder)
 {
     Add(ID.Parse(commandID), target, builder.Build());
 }
Ejemplo n.º 5
0
 public static Task Execute <TRef>(this IServiceProvider services, IBuilds <ICommandMessage> message, Ref <TRef> target) where TRef : IHasID <ID>
 => services.Execute(new Command(message.Build(), ID.FromRef(Check.NotNull(target, nameof(target)))));
Ejemplo n.º 6
0
 public static Task Execute(this IServiceProvider services, IBuilds <ICommandMessage> command, ID?targetID = null)
 => services.Execute(new Command(command.Build(), targetID));