All Projects → VahidN → DNTCommon.Web.Core

VahidN / DNTCommon.Web.Core

Licence: Apache-2.0 license
DNTCommon.Web.Core provides common scenarios' solutions for ASP.NET Core 3.x applications.

Programming Languages

C#
18002 projects
HTML
75241 projects

Projects that are alternatives of or similar to DNTCommon.Web.Core

AspNetCoreAzureSearch
ASP.NET Core with Azure Cognitive Search
Stars: ✭ 12 (-89.74%)
Mutual labels:  aspnetcore, aspnet-core, razor
Aspnetcore.docs
Documentation for ASP.NET Core
Stars: ✭ 9,940 (+8395.73%)
Mutual labels:  aspnetcore, asp, aspnet-core
BlazorDemo
Demo application for my writings about Blazor
Stars: ✭ 79 (-32.48%)
Mutual labels:  aspnetcore, aspnet-core, razor
PersianDataAnnotations
PersianDataAnnotations is ASP.NET Core MVC & ASP.NET MVC Custom Localization DataAnnotations (Localized MVC Errors) for Persian(Farsi) language - فارسی سازی خطاهای اعتبارسنجی توکار ام.وی.سی. و کور.ام.وی.سی. برای نمایش اعتبار سنجی سمت کلاینت
Stars: ✭ 38 (-67.52%)
Mutual labels:  mvc, aspnetcore, asp-net-mvc
DNZ.MvcComponents
A set of useful UI-Components (HtmlHelper) for ASP.NET Core MVC based-on Popular JavaScript Plugins (Experimental project).
Stars: ✭ 25 (-78.63%)
Mutual labels:  aspnetcore, aspnet-core, asp-net-mvc
Wilson
ERP / CRM system for small to medium construction companies.
Stars: ✭ 84 (-28.21%)
Mutual labels:  mvc, aspnet-core, asp-net-mvc
MvcSimplePager
Simple,lightweight,easy to expand pager for asp.net mvc and asp.net core,针对asp.net mvc 和 asp.net core 设计的通用、扩展性良好的轻量级分页扩展
Stars: ✭ 13 (-88.89%)
Mutual labels:  mvc, aspnetcore, asp-net-mvc
Awesome-Nuget-Packages
📦 A collection of awesome and top .NET packages sorted by most popular needs.
Stars: ✭ 87 (-25.64%)
Mutual labels:  aspnetcore, aspnet-core, asp-net-mvc
AspNetCore-ReCAPTCHAv3
reCAPTCHA v3 Usage in Asp.Net Core MVC
Stars: ✭ 17 (-85.47%)
Mutual labels:  mvc, aspnetcore, asp
AspNetCoreMvcSharedLocalization
ASP.NET Core MVC shared localization
Stars: ✭ 31 (-73.5%)
Mutual labels:  mvc, aspnet-core, razor
Identityserver4aspnetcoreidentitytemplate
An ASP.NET Core 3.1 IdentityServer4 Identity Bootstrap 4 template with localization
Stars: ✭ 262 (+123.93%)
Mutual labels:  mvc, aspnetcore, aspnet-core
SdvCodeWebsite
Simeon Valev - Personal Blog - Developed on ASP.NET Core MVC - Server-Side Blazor - See README.md file for more information
Stars: ✭ 38 (-67.52%)
Mutual labels:  mvc, asp, razor
MADE.NET
MADE.NET is a home to all of those bits of code that you know you'll reuse in another project. Making app development easier with .NET.
Stars: ✭ 75 (-35.9%)
Mutual labels:  mvc, aspnetcore
AspNetCore.Unobtrusive.Ajax
Unobtrusive Ajax Helpers (like MVC5 Ajax.BeignForm and Ajax.ActionLink) for ASP.NET Core
Stars: ✭ 46 (-60.68%)
Mutual labels:  aspnetcore, aspnet-core
run-aspnetcore-basics retired
One Solution - One Project for web application development with Asp.Net Core & EF.Core. Only one web application project which used aspnetcore components; razor pages, middlewares, dependency injection, configuration, logging. To create websites with minimum implementation of asp.net core based on HTML5, CSS, and JavaScript. You can use this boi…
Stars: ✭ 15 (-87.18%)
Mutual labels:  aspnetcore, aspnet-core
DNZ.SEOChecker
SEO Checker and Recommander Plugin (like wordpress Yoast) for ASP.NET Core.
Stars: ✭ 18 (-84.62%)
Mutual labels:  aspnetcore, asp-net-mvc
.NET-Core-Learning-Journey
Some of the projects i made when starting to learn .NET Core
Stars: ✭ 37 (-68.38%)
Mutual labels:  mvc, asp
ReaLocate
ASP.NET MVC 5 Real Estate Application
Stars: ✭ 18 (-84.62%)
Mutual labels:  mvc, asp-net-mvc
Asp.net MVC5 DDD EF6 IoC
Asp.net C# MVC5, EF6, DDD, IoC
Stars: ✭ 14 (-88.03%)
Mutual labels:  mvc, asp
XAF Security E4908
This repository contains examples for Role-based Access Control, Permission Management, and OData / Web / REST API Services for Entity Framework and XPO ORM
Stars: ✭ 47 (-59.83%)
Mutual labels:  mvc, aspnetcore

DNTCommon.Web.Core

GitHub Actions status

DNTCommon.Web.Core provides common scenarios' solutions for ASP.NET Core 3.x applications.

Install via NuGet

To install DNTCommon.Web.Core, run the following command in the Package Manager Console:

PM> Install-Package DNTCommon.Web.Core

You can also view the package page on NuGet.

Usage

After installing the DNTCommon.Web.Core package, to register its default providers, call services.AddDNTCommonWeb(); method in your Startup class.

using DNTCommon.Web.Core;

namespace MyWebApp
{
    public class Startup
    {
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddDNTCommonWeb();
        }

Features

  • ActionResults

  • Caching

    • ICacheService encapsulates IMemoryCache functionalities.
    • [NoBrowserCache] action filter sets no-cache, must-revalidate, no-store headers for the current Response.
  • DependencyInjection

    • IServiceProviderExtensions creates an IServiceScope which contains an IServiceProvider used to resolve dependencies from a newly created scope and then runs an associated callback.
  • Drawing

  • Http

  • Mail

    • IWebMailService simplifies sending an email using the MailKit library. It's able to use razor based email templates.
  • ModelBinders

    • PersianDateModelBinderProvider parses an incoming Persian date and then binds it to a DateTime property automatically. To use it globally (assuming your app only sends Persian dates to the server), Add it to MvcOptions: services.AddMvc(options => options.UsePersianDateModelBinder()) or just apply it to an specific view-model [ModelBinder(BinderType = typeof(PersianDateModelBinder))].
    • YeKeModelBinderProvider parses an incoming text and then corrects its Ye & Ke characters automatically. To use it globally, Add it to MvcOptions: services.AddMvc(options => options.UseYeKeModelBinder()) or just apply it to an specific view-model [ModelBinder(BinderType = typeof(YeKeModelBinder))].
    • ApplyCorrectYeKeFilterAttribute parses an incoming text and then corrects its Ye & Ke characters automatically. To use it globally, Add it to MvcOptions: services.AddControllersWithViews(options => options.Filters.Add(typeof(ApplyCorrectYeKeFilterAttribute))).
  • Mvc

  • Schedulers

    • BackgroundQueueController A .NET Core replacement for the old HostingEnvironment.QueueBackgroundWorkItem method.
    • ScheduledTasksController DNTScheduler.Core is a lightweight ASP.NET Core's background tasks runner and scheduler. To define a new task, create a new class that implements the IScheduledTask interface. To register this new task, call services.AddDNTScheduler(); method in your Startup class. AddDNTScheduler method, adds this new task to the list of the defined tasks. Also its first parameter defines the custom logic of the running intervals of this task. It's a callback method that will be called every second and provides the utcNow value. If it returns true, the job will be executed.If you have multiple jobs at the same time, the order parameter's value indicates the order of their execution.
  • Security

    • [AjaxOnly] action filter determines whether the HttpRequest's X-Requested-With header has XMLHttpRequest value.
    • IProtectionProviderService is an encryption provider based on Microsoft.AspNetCore.DataProtection.IDataProtector. It's only useful for short-term encryption scenarios such as creating encrypted HTTP cookies.
    • IFileNameSanitizerService determines whether the requested file is safe to download to avoid Directory Traversal & File Inclusion attacks.
    • UploadFileExtensions attribute determines only selected file extensions are safe to be uploaded.
    • AllowUploadSafeFiles attribute disallows uploading dangerous files such as .aspx, web.config and .asp files.
    • AntiDosMiddleware is a rate limiter and throttling middleware for ASP.NET Core apps. To use it first add app.UseAntiDos() and services.Configure<AntiDosConfig> to Startup.cs file. Then complete the AntiDosConfig section of the appsettings.json file.
    • IAntiXssService provides a cleaning service for unsafe HTML fragments that can lead to XSS attacks based on a whitelist of allowed tags and attributes. To use it add services.Configure<AntiXssConfig> to Startup.cs file. Then complete the AntiXssConfig section of the appsettings.json file.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].