Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I am not entirely sure what the best practice is for this, but here is an idea that comes to mind.</p> <p>A major constraint will be to be able to share the application pool and the sessions for these users.</p> <p>One way (again, I am not sure what the best practice is) would be to have all of these applications setup from one place. An entry tier if you will. This will only have a global.asax definition for starting the applications. Each application will start from one place, allowing them to all share the same scope. This can be accomplished with a few steps in your global.asax file.</p> <p>Right click on global.asax and click show markup</p> <pre><code>&lt;%@ Application Codebehind="Global.asax.cs" Inherits="appNamespace.ApplicationModerator" Language="C#" %&gt; </code></pre> <p>Inside of global.asax.cs</p> <pre><code>public class ApplicationModerator : System.Web.HttpApplication { protected void Application_Start() { new namespace1.TierApplication1(); new namespace2.TierApplication2(); new namespace3.TierApplication3(); } } </code></pre> <p>TierApplication1 (they will all be different, but have similar features)</p> <pre><code>public class TierApplication1 { public TierApplication1 () { AreaRegistration.RegisterAllAreas(); Database.SetInitializer&lt;DbContext&gt;(null); RegisterGlobalFilters(GlobalFilters.Filters); RegisterRoutes(RouteTable.Routes); } public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new HandleErrorAttribute()); } public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.IgnoreRoute("favicon.ico"); routes.MapRoute( "Default", // Route name "{controller}/{action}/{id}", // URL with parameters new { controller = "Account", action = "LogOn", id = UrlParameter.Optional }, // Parameter defaults ); } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload