示例#1
0
        static StateRuntime()
        {
            StateApplication app = new StateApplication();

            HttpApplicationFactory.SetCustomApplication(app);

            PerfCounters.Open(null);
            ResetStateServerCounters();
        }
 static StateRuntime()
 {
     WebConfigurationFileMap fileMap = new WebConfigurationFileMap();
     UserMapPath configMapPath = new UserMapPath(fileMap);
     HttpConfigurationSystem.EnsureInit(configMapPath, false, true);
     StateApplication customApplication = new StateApplication();
     HttpApplicationFactory.SetCustomApplication(customApplication);
     PerfCounters.OpenStateCounters();
     ResetStateServerCounters();
 }
        static StateRuntime()
        {
            WebConfigurationFileMap fileMap       = new WebConfigurationFileMap();
            UserMapPath             configMapPath = new UserMapPath(fileMap);

            HttpConfigurationSystem.EnsureInit(configMapPath, false, true);
            StateApplication customApplication = new StateApplication();

            HttpApplicationFactory.SetCustomApplication(customApplication);
            PerfCounters.OpenStateCounters();
            ResetStateServerCounters();
        }