ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Tupitsyn (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (IGNITE-3199) .NET: ASP.NET Session-State Store Provider
Date Wed, 24 Aug 2016 13:13:20 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-3199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15434888#comment-15434888
] 

Pavel Tupitsyn edited comment on IGNITE-3199 at 8/24/16 1:12 PM:
-----------------------------------------------------------------

How to test:
* Download sample ASP.NET project "Contoso University" from MSDN: https://code.msdn.microsoft.com/ASPNET-MVC-Application-b01a9fe8
* Extract files, open in Visual Studio, run (Ctrl-F5) to make sure it works
* Install Apache.Ignite.AspNet nuget package
* Modify web.config by adding the following inside <system.web> section:
{code}
      <sessionState mode="Custom" customProvider="IgniteSessionStateProvider">
          <providers>
              <add name="IgniteSessionStateProvider"
                   type="Apache.Ignite.AspNet.IgniteSessionStateStoreProvider, Apache.Ignite.AspNet"
                   applicationId="myApp"
                   gridName="myGrid"
                   cacheName="aspNetSessionCache" />
          </providers>
      </sessionState>
{code}
* Add the following code to Application_Start method in Global.asax.cs :
{code}
            Ignition.Start(new IgniteConfiguration
            {
                IgniteHome = IgniteWebUtils.GetWebIgniteHome()
            });

{code}
* Stop the IIS Express server (blue icon in tray) to ensure clean restart
* Start the app again, it will take more time to load (because Ignite node starts). Everything
should work as before.


was (Author: ptupitsyn):
How to test:
* Download sample ASP.NET project "Contoso University" from MSDN: https://code.msdn.microsoft.com/ASPNET-MVC-Application-b01a9fe8
* Extract files, open in Visual Studio, run (Ctrl-F5) to make sure it works
* Install Apache.Ignite.AspNet nuget package
* Modify web.config by adding the following inside <system.web> section:
{code}
      <sessionState mode="Custom" customProvider="IgniteSessionStateProvider">
          <providers>
              <add name="IgniteSessionStateProvider"
                   type="Apache.Ignite.AspNet.IgniteSessionStateStoreProvider, Apache.Ignite.AspNet"
                   applicationId="myApp"
                   gridName="myGrid"
                   cacheName="aspNetSessionCache" />
          </providers>
      </sessionState>
{code}
* Stop the IIS Express server (blue icon in tray) to ensure clean restart
* Start the app again, it will take more time to load (because Ignite node starts). Everything
should work as before.

> .NET: ASP.NET Session-State Store Provider
> ------------------------------------------
>
>                 Key: IGNITE-3199
>                 URL: https://issues.apache.org/jira/browse/IGNITE-3199
>             Project: Ignite
>          Issue Type: Sub-task
>          Components: platforms
>    Affects Versions: 1.7
>            Reporter: Pavel Tupitsyn
>            Assignee: Pavel Tupitsyn
>            Priority: Critical
>              Labels: .net
>             Fix For: 1.8
>
>
> See https://msdn.microsoft.com/en-us/library/ms178587.aspx
> Code should be put to Apache.Ignite.AspNet assembly (see IGNITE-2379)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message