99
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Web.Http;
|
||||
using MyCode.Project.Infrastructure.Exceptions;
|
||||
using System.Security.Claims;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web.Http.Controllers;
|
||||
using System.IO;
|
||||
using System.Globalization;
|
||||
using MyCode.Project.Infrastructure.Common;
|
||||
using MyCode.Project.Infrastructure.Cache;
|
||||
using System.Web;
|
||||
using MyCode.Project.Services;
|
||||
using Microsoft.Practices.Unity;
|
||||
using Newtonsoft.Json;
|
||||
using MyCode.Project.Infrastructure.WebPost;
|
||||
using MyCode.Project.Infrastructure.Constant;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System.Collections.Specialized;
|
||||
using MyCode.Project.Domain.Config;
|
||||
|
||||
namespace MyCode.Project.WebApi.Controllers
|
||||
{
|
||||
|
||||
public class BaseAPIController : ApiController
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 得到一个HttpContextBase队形
|
||||
/// </summary>
|
||||
public HttpContextBase CurrentHttpContext
|
||||
{
|
||||
get
|
||||
{
|
||||
return (System.Web.HttpContextBase)Request.Properties["MS_HttpContext"];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user