コード例 #1
0
ファイル: Controller.cs プロジェクト: Infarch/MyPerlModules
 ControllerActionEventArgs BuildEventArgs(Exception e)
 {
     ControllerActionEventArgs evt = new ControllerActionEventArgs();
     evt.Message = GetErrorMessage(e);
     return evt;
 }
コード例 #2
0
ファイル: Controller.cs プロジェクト: Infarch/MyPerlModules
 private void FireEvent(ControllerActionComplete handler, ControllerActionEventArgs e)
 {
     if (handler != null) handler(this, e);
 }
コード例 #3
0
ファイル: Controller.cs プロジェクト: Infarch/MyPerlModules
 ControllerActionEventArgs BuildEventArgs()
 {
     try
     {
         ControllerActionEventArgs evt = new ControllerActionEventArgs();
         evt.Summary = GetSummary();
         evt.Success = true;
         return evt;
     }
     catch (Exception e)
     {
         return BuildEventArgs(e);
     }
 }