Skip to main content

Posts

Showing posts from 2019

Code Example Zip File Extraction and Download in dotnet core api

using   System . Security . Principal ; using   Microsoft . Win32 . SafeHandles ; using   System . Dynamic ; using   System . Reflection . Metadata . Ecma335 ; using   System . Reflection . Metadata ; using   System . Text ; using   System . Runtime . CompilerServices ; using   System . Net . Http ; using   System ; using   System . Collections . Generic ; using   System . Linq ; using   System . Net . Mime ; using   System . Threading . Tasks ; using   Microsoft . AspNetCore . Http ; using   Microsoft . AspNetCore . Mvc ; using   Microsoft . EntityFrameworkCore ; using   MovejobtoWms . Models ; using   System . IO ; using   System . Net ; using   Microsoft . AspNetCore . Authorization ; using   System . IO . Compression ; using   System . Net . Http . Headers ; using   System . Net . Http . Formatting ; using   System ...

Dotnet Core Web Api Authendication in C#

using   System ; using   System . Net . Http . Headers ; using   System . Security . Claims ; using   System . Text ; using   System . Text . Encodings . Web ; using   System . Threading . Tasks ; using   Microsoft . AspNetCore . Authentication ; using   Microsoft . AspNetCore . Http ; using   Microsoft . Extensions . Logging ; using   Microsoft . Extensions . Options ; namespace   MovejobtoWms . Helpers {      public   class   CustomAuthenticationHandler  :  AuthenticationHandler < AuthenticationSchemeOptions >     {          // private readonly IUserService _userService;          public   CustomAuthenticationHandler (              IOptionsMonitor < AuthenticationS...