/// <summary> /// Toast notification constructor /// </summary> /// <param name="tempDataWrapper"><see cref="ITempDataWrapper"/></param> /// <param name="nToastNotifyOptions">Default toast notify options</param> public ToastNotification(ITempDataWrapper tempDataWrapper, NToastNotifyOption nToastNotifyOptions) { _tempDataWrapper = tempDataWrapper; _defaultNtoastNotifyOptions = nToastNotifyOptions.MergeWith(NToastNotifyOption.Defaults); }
/// <summary> /// Toast notification constructor /// </summary> /// <param name="messageContainerFactory"></param> /// <param name="nToastNotifyOptions">Default toast notify options</param> public ToastNotification(IMessageContainerFactory messageContainerFactory, NToastNotifyOption nToastNotifyOptions) { _messageContainer = messageContainerFactory.Create(); _defaultNtoastNotifyOptions = nToastNotifyOptions.MergeWith(NToastNotifyOption.Defaults); }