創建應用程序域
1/**//*這是System.Web.Hosting.AppDomainFactory類型的Create方法,它調用的是實際工廠的Create方法。*/
2[return: MarshalAs(UnmanagedType.Interface)]
3public object Create(string module, string typeName, string appId, string appPath, string strUrlOfAppOrigin, int iZone)
4{
5 /**//*實際工廠是一個AppManagerAppDomainFactory類型的對象。*/
6 return this._realFactory.Create(appId, appPath);
7}
8
9/**//*AppManagerAppDomainFactory.Create方法,請看代碼內的注釋。*/
10[return: MarshalAs(UnmanagedType.Interface)]
11public object Create(string appId, string appPath)
延伸閱讀
文章來源于領測軟件測試網 http://www.kjueaiud.com/