/// <summary> /// Creates a new notification with a provided message and /// a specified bootstrapperService type. /// This will set ContentType to 'CustomServiceNotification'. /// </summary> /// <param name="type">Type of notification to add.</param> /// <param name="bootstrapperServiceType">Type of bootstrapperService that have /// generated this notification/</param> /// <param name="message">Message to insert in notification.</param> public BootstrapperNotification(BootstrapperNotificationType type, string message, Type bootstrapperServiceType) : this(type, message) { BootstrapperServiceType = bootstrapperServiceType ?? throw new ArgumentNullException(nameof(bootstrapperServiceType)); }
/// <summary> /// Creates a new notification with a provided message. /// This will set ContentType to 'CustomServiceNotification'. /// </summary> /// <param name="type">Type of notification to add.</param> /// <param name="message">Message to insert in notification.</param> public BootstrapperNotification(BootstrapperNotificationType type, string message) { Message = message; Type = type; ContentType = BootstapperNotificationContentType.CustomServiceNotification; }