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