示例#1
0
 public Notifier(
     [NotNull] IToastNotifier toastNotifier,
     [NotNull] Func <XmlDocument, ToastNotification> toastNotificationFactory)
 {
     ToastNotificationFactory = toastNotificationFactory ?? throw new ArgumentNullException(nameof(toastNotificationFactory));
     ToastNotifier            = toastNotifier ?? throw new ArgumentNullException(nameof(toastNotifier));
 }
示例#2
0
 public GVFSToastRequestHandler(IToastNotifier toastNotifier, ITracer tracer)
 {
     this.toastNotifier = toastNotifier;
     this.toastNotifier.UserResponseCallback = this.UserResponseCallback;
     this.tracer = tracer;
 }