Esempio n. 1
0
        /// <summary>
        /// Add Noty based toast notification services
        /// </summary>
        /// <param name="mvcBuilder"></param>
        /// <param name="defaultOptions"></param>
        /// <param name="nToastNotifyOptions"></param>
        /// <returns></returns>
        public static IMvcBuilder AddNToastNotifyToastr(this IMvcBuilder mvcBuilder, ToastrOptions defaultOptions = null,
                                                        NToastNotifyOption nToastNotifyOptions = null)
        {
            nToastNotifyOptions = nToastNotifyOptions ?? new NToastNotifyOption();
            var library = Utils.GetLibraryDetails <ToastrLibrary>(nToastNotifyOptions, defaultOptions);

            return(mvcBuilder.AddNToastNotifyToMvcBuilder <ToastrNotification>(library, nToastNotifyOptions));
        }
 /// <summary>
 /// Add Noty based toast notification services
 /// </summary>
 /// <param name="mvcBuilder"></param>
 /// <param name="defaultOptions"></param>
 /// <param name="nToastNotifyOptions"></param>
 /// <returns></returns>
 public static IMvcBuilder AddNToastNotifyNoty(this IMvcBuilder mvcBuilder, NotyOptions defaultOptions = null,
                                               NToastNotifyOption nToastNotifyOptions = null)
 {
     return(mvcBuilder.AddNToastNotifyToMvcBuilder <NotyLibrary, NotyOptions, NotyMessage, NotyNotification>(defaultOptions ?? new NotyOptions(), nToastNotifyOptions));
 }
 /// <summary>
 /// Add Noty based toast notification services
 /// </summary>
 /// <param name="mvcBuilder"></param>
 /// <param name="defaultOptions"></param>
 /// <param name="nToastNotifyOptions"></param>
 /// <returns></returns>
 public static IMvcBuilder AddNToastNotifyToastr(this IMvcBuilder mvcBuilder, ToastrOptions defaultOptions = null,
                                                 NToastNotifyOption nToastNotifyOptions = null)
 {
     return(mvcBuilder.AddNToastNotifyToMvcBuilder <ToastrLibrary, ToastrOptions, ToastrMessage, ToastrNotification>(defaultOptions ?? new ToastrOptions(), nToastNotifyOptions));
 }