Exemplo n.º 1
0
 /// <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);
 }
Exemplo n.º 2
0
 public MessageContainerFactory(IHttpContextAccessor httpContextAccessor, ITempDataWrapper tempDataWrapper, NToastNotifyOption nToastNotifyOption)
 {
     _httpContextAccessor = httpContextAccessor;
     _tempDataWrapper     = tempDataWrapper;
     _nToastNotifyOption  = nToastNotifyOption;
 }
 public TempDataMessageContainer(ITempDataWrapper tempDataWrapper)
 {
     _tempDataWrapper = tempDataWrapper;
 }
Exemplo n.º 4
0
 public MessageContainerFactory(IHttpContextAccessor httpContextAccessor, ITempDataWrapper tempDataWrapper)
 {
     _httpContextAccessor = httpContextAccessor;
     _tempDataWrapper     = tempDataWrapper;
 }
Exemplo n.º 5
0
 public ToastrViewComponent(ITempDataWrapper tempDataWrapper, ToastOption globalOption)
 {
     _tempDataWrapper = tempDataWrapper;
     _globalOption    = globalOption;
 }