private void DialPlanHunt(IRequest request) { var dialPlan = new DialPlan(request.From, request.To); _dialPlanManager.PreProcess(dialPlan); try { DialPlanRequested(this, new DialPlanEventArgs(dialPlan)); } catch (Exception err) { // oops, someone threw an exception. } _dialPlanManager.Process(dialPlan); }
public DialPlanEventArgs(DialPlan dialPlan) { DialPlan = dialPlan; }