public Internal(IGitCli cli, IBranchSettings settings, IRepositoryMediator repository, IUnitOfWorkFactory unitOfWorkFactory, string deletingBranch, DeleteBranchMode mode) { this.cli = cli; this.settings = settings; this.repository = repository; this.unitOfWorkFactory = unitOfWorkFactory; this.deletingBranch = deletingBranch; this.mode = mode; }
public void DeleteBranch(string branchName, [FromServices] IOrchestrationActions orchestrationActions, [FromQuery] DeleteBranchMode mode = DeleteBranchMode.BranchAndGroup) { orchestrationActions.DeleteBranch(branchName, mode); }
public IObservable <IRepositoryActionEntry> DeleteBranch(string branchName, DeleteBranchMode mode) { return(orchestration.EnqueueAction(new DeleteBranchAction(branchName, mode))); }
public DeleteBranchAction(string deletingBranch, DeleteBranchMode mode) { this.deletingBranch = deletingBranch; this.mode = mode; }