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(); }
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(); }