Пример #1
0
 public DeleteDomainAProcessor(ICommandInput cmd)
 {
     this.CommandTransctionId = cmd.CommandTransctionId;
     this.CommandName         = cmd.CommandName;
     this.Command             = cmd.Command;
     this.Inputs = cmd.Inputs;
     // if We Have DI then it will be better
     _Engine = new DomainAEngine();
 }
Пример #2
0
 public AddDomainAProcessor(ICommandInput cmd)
 {
     this.CommandTransctionId = cmd.CommandTransctionId;
     this.CommandName         = cmd.CommandName;
     this.Command             = cmd.Command;
     this.Inputs = cmd.Inputs;
     // if We Have DI then it will be better Since at MediatR we can reduce Dependency Injection
     _Engine = new DomainAEngine();
 }