コード例 #1
0
 /// <summary>
 /// Creates the AcspNet context.
 /// </summary>
 /// <param name="context">The context.</param>
 /// <returns></returns>
 public void Setup(IOwinContext context)
 {
     if (_acspNetContext == null)
     {
         _acspNetContext = new AcspNetContext(context);
     }
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HttpModelHandler"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 public HttpModelHandler(IAcspNetContext context)
 {
     _context = context;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ModelBinderEventArgs{T}"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 public ModelBinderEventArgs(IAcspNetContext context)
 {
     Context = context;
 }
コード例 #4
0
ファイル: Redirector.cs プロジェクト: qinfengzhu/AcspNet
 /// <summary>
 /// Initializes a new instance of the <see cref="Redirector"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 public Redirector(IAcspNetContext context)
 {
     _context = context;
 }
コード例 #5
0
ファイル: Redirector.cs プロジェクト: jmptrader/AcspNet
 /// <summary>
 /// Initializes a new instance of the <see cref="Redirector"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 public Redirector(IAcspNetContext context)
 {
     _context = context;
 }
コード例 #6
0
 /// <summary>
 /// Creates the AcspNet context.
 /// </summary>
 /// <param name="context">The context.</param>
 /// <returns></returns>
 public void Setup(IOwinContext context)
 {
     if(_acspNetContext == null)
         _acspNetContext = new AcspNetContext(context);
 }