public void Process(string input) { Debug.WriteLine("This would remove all the C's"); if (_nextChain != null) { _nextChain.Process(""); } }
public void Process(Number request) { if (request.GetNumber() > 0) { Console.WriteLine("The number " + request.GetNumber() + " is positive"); } else { nextInChain.Process(request); } }
public CategoryResponse Process(string name) { if (name == "TrakItRequest") { return(new CategoryResponse { Name = "TrakIT" }); } return(_nextChain.Process(name)); }
public CategoryResponse Process(string name) { if (name == "WelcomeEmailRequest") { return(new CategoryResponse { Name = "Welcome Email" }); } return(_nextChain.Process(name)); }