示例#1
0
 public static PerformanceHint Create(string database, string title, string msg, PerformanceHintType type, NotificationSeverity notificationSeverity, string source, INotificationDetails details = null)
 {
     return new PerformanceHint(database)
     {
         IsPersistent = true,
         Title = title,
         Message = msg,
         HintType = type,
         Severity = notificationSeverity,
         Source = source,
         Details = details
     };
 }
示例#2
0
 public static AlertRaised Create(string database, string title, string msg, AlertType type, NotificationSeverity severity, string key = null, INotificationDetails details = null)
 {
     return(new AlertRaised(database)
     {
         IsPersistent = true,
         Title = title,
         Message = msg,
         AlertType = type,
         Severity = severity,
         Key = key,
         Details = details
     });
 }