Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

httpcontext in .net standard

namespace System.Web
{
    public static class HttpContext
        {
            private static Microsoft.AspNetCore.Http.IHttpContextAccessor m_httpContextAccessor;


    public static void Configure(Microsoft.AspNetCore.Http.IHttpContextAccessor httpContextAccessor)
        {
            m_httpContextAccessor = httpContextAccessor;
        }


        public static Microsoft.AspNetCore.Http.HttpContext Current
        {
            get
            {
                return m_httpContextAccessor.HttpContext;
            }
        }

    }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: update multiple records with entity framework 
Csharp :: c# concatenation 
Csharp :: c# turn negative number into positive 
Csharp :: play sound in unity c# 
Csharp :: c# list object sort alphabetically 
Csharp :: Task.FromResult(null) 
Csharp :: c# round double 
Csharp :: c# remove first 5 characters from string 
Csharp :: wpf arrow button 
Csharp :: create new .net project 
Csharp :: 1 line if c# 
Csharp :: c# ienumerable to list 
Csharp :: how use unity interfaces 
Csharp :: unity get game version 
Csharp :: hcf of numbers 
Csharp :: how to deactivate an object unity 
Csharp :: c# unescape string 
Csharp :: get all components of type unity 
Csharp :: c# binding add combobox with enum values 
Csharp :: c# merge two xml files 
Csharp :: How to find out if a file exists in C# / .NET? 
Csharp :: linq sum 
Csharp :: print all complete object in list c# 
Csharp :: how to get current dir in c# 
Csharp :: entity framework insert 
Csharp :: excel isrlgood 
Csharp :: what is unity 
Csharp :: make 2D object move at constant speed unity 
Csharp :: how to pass id from view to controller in asp.net core 
Csharp :: c# count directories in directory and subdirectories 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =