资源简介

MEF模块解耦,WCF Rest 扩展 基础示例

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;
using System.ServiceModel.Activation;
using MEFDemo.WCFUtility;
using System.Web.Routing;

namespace MEFDemo.WebHost
{
    public class Global : System.Web.HttpApplication
    {

        void Application_Start(object sender EventArgs e)
        {
            WebServiceHostFactory factory = new CustomerWebServiceHostFactory();
            
            RouteTable.Routes.Add(new ServiceRoute(“Domain1Service“factorytypeof(MEFDemo.Domain1.Service.StudentRestfulService)));

        }

        void Application_End(object sender EventArgs e)
        {
            //  在应用程序关闭时运行的代码

        }

        void Application_Error(object sender EventArgs e)
        {
            // 在出现未处理的错误时运行的代码

        }

        void Session_Start(object sender EventArgs e)
        {
            // 在新会话启动时运行的代码

        }

        void Session_End(object sender EventArgs e)
        {
            // 在会话结束时运行的代码。 
            // 注意: 只有在 Web.config 文件中的 sessionstate 模式设置为
            // InProc 时,才会引发 Session_End 事件。如果会话模式设置为 StateServer 
            // 或 SQLServer,则不会引发该事件。

        }

    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      12558  2012-12-11 22:24  MEFDemo\Backup\MEFDemo.sln

    ..A..H.    142848  2013-04-27 01:17  MEFDemo\Backup\MEFDemo.v11.suo

     文件       4454  2012-11-28 20:39  MEFDemo\Backup\MEFDemo.WebHost\Account\ChangePassword.aspx

     文件        353  2012-11-28 20:39  MEFDemo\Backup\MEFDemo.WebHost\Account\ChangePassword.aspx.cs

     文件        843  2012-11-28 20:39  MEFDemo\Backup\MEFDemo.WebHost\Account\ChangePassword.aspx.designer.cs

     文件        512  2012-11-28 20:39  MEFDemo\Backup\MEFDemo.WebHost\Account\ChangePasswordSuccess.aspx

     文件        360  2012-11-28 20:39  MEFDemo\Backup\MEFDemo.WebHost\Account\ChangePasswordSuccess.aspx.cs

     文件        477  2012-11-28 20:39  MEFDemo\Backup\MEFDemo.WebHost\Account\ChangePasswordSuccess.aspx.designer.cs

     文件       3076  2012-11-28 20:39  MEFDemo\Backup\MEFDemo.WebHost\Account\Login.aspx

     文件        473  2012-11-28 20:39  MEFDemo\Backup\MEFDemo.WebHost\Account\Login.aspx.cs

     文件       1162  2012-11-28 20:39  MEFDemo\Backup\MEFDemo.WebHost\Account\Login.aspx.designer.cs

     文件       5700  2012-11-28 20:39  MEFDemo\Backup\MEFDemo.WebHost\Account\Register.aspx

     文件        915  2012-11-28 20:39  MEFDemo\Backup\MEFDemo.WebHost\Account\Register.aspx.cs

     文件       1203  2012-11-28 20:39  MEFDemo\Backup\MEFDemo.WebHost\Account\Register.aspx.designer.cs

     文件        347  2012-11-28 20:39  MEFDemo\Backup\MEFDemo.WebHost\Account\Web.config

     文件         99  2012-11-28 20:39  MEFDemo\Backup\MEFDemo.WebHost\Global.asax

     文件       1475  2013-06-05 00:17  MEFDemo\Backup\MEFDemo.WebHost\Global.asax.cs

     文件       6493  2012-12-12 22:43  MEFDemo\Backup\MEFDemo.WebHost\MEFDemo.WebHost.csproj

     文件       1086  2012-12-12 22:43  MEFDemo\Backup\MEFDemo.WebHost\MEFDemo.WebHost.csproj.user

     文件       1331  2012-11-28 20:39  MEFDemo\Backup\MEFDemo.WebHost\Properties\AssemblyInfo.cs

     文件       2397  2012-12-12 21:37  MEFDemo\Backup\MEFDemo.WebHost\Web.config

     文件       1223  2012-11-28 20:39  MEFDemo\Backup\MEFDemo.WebHost\Web.Debug.config

     文件       1284  2012-11-28 20:39  MEFDemo\Backup\MEFDemo.WebHost\Web.Release.config

     文件        159  2012-11-28 20:33  MEFDemo\MEFDemo\Class1.cs

     文件       2302  2012-11-28 20:33  MEFDemo\MEFDemo\MEFDemo.csproj

     文件       5686  2012-11-28 20:33  MEFDemo\MEFDemo\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       1346  2012-11-28 20:33  MEFDemo\MEFDemo\Properties\AssemblyInfo.cs

     文件       5120  2014-03-18 23:56  MEFDemo\MEFDemo.BizEntity\bin\Debug\MEFDemo.BizEntity.dll

     文件      11776  2014-03-18 23:56  MEFDemo\MEFDemo.BizEntity\bin\Debug\MEFDemo.BizEntity.pdb

     文件        495  2014-03-18 21:52  MEFDemo\MEFDemo.BizEntity\BizException.cs

............此处省略479个文件信息

评论

共有 条评论