当前位置: 首页>>代码示例>>C#>>正文


C# BaseHttpServer.SetDefaultLLSDHandler方法代码示例

本文整理汇总了C#中OpenSim.Framework.Servers.HttpServer.BaseHttpServer.SetDefaultLLSDHandler方法的典型用法代码示例。如果您正苦于以下问题:C# BaseHttpServer.SetDefaultLLSDHandler方法的具体用法?C# BaseHttpServer.SetDefaultLLSDHandler怎么用?C# BaseHttpServer.SetDefaultLLSDHandler使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在OpenSim.Framework.Servers.HttpServer.BaseHttpServer的用法示例。


在下文中一共展示了BaseHttpServer.SetDefaultLLSDHandler方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: RegisterHandlers

        public void RegisterHandlers(BaseHttpServer httpServer, bool registerLLSDHandler, bool registerOpenIDHandlers)
        {
            m_httpServer = httpServer;

            //m_httpServer.AddXmlRPCHandler("login_to_simulator", XmlRpcLoginMethod);
            m_httpServer.AddXmlRPCHandler("login_to_simulator", m_LoginSwitch.XmlRpcLoginMethodSwitch);
            m_httpServer.AddHTTPHandler("login", ProcessHTMLLogin);
            m_httpServer.AddXmlRPCHandler("set_login_params", XmlRPCSetLoginParams);
            //m_httpServer.AddXmlRPCHandler("check_auth_session", XmlRPCCheckAuthSession, false);
            m_httpServer.AddXmlRPCHandler("check_auth_session", m_LoginSwitch.XmlRPCCheckAuthSessionSwitch, false);

            if (registerLLSDHandler)
            {
                m_httpServer.SetDefaultLLSDHandler(LLSDLoginMethod);
            }

            // Handler for the root page
            m_httpServer.AddStreamHandler(new RootPageStreamHandler("GET", "/", this));

            if (!String.IsNullOrEmpty(m_config.ContentFilePath))
            {
                // Handler for misc. web content
                m_httpServer.AddStreamHandler(new FilesystemStreamHandler("GET", "/content/", m_config.ContentFilePath, this));
            }

            if (registerOpenIDHandlers)
            {
                CableBeachLoginService loginService = new CableBeachLoginService(this.UserManager, this.InterInventoryService,
                    this.LibraryRootFolder, this.m_config, this.WelcomeMessage, this.RegionProfileService);
                CableBeachState.LoginService = loginService;

                // Handler for OpenID avatar identity pages
                m_httpServer.AddStreamHandler(new OpenIdUserPageStreamHandler("GET", "/users/", this));

                // Handlers for the OpenID endpoint server
                m_httpServer.AddStreamHandler(new OpenIdProviderStreamHandler("POST", "/openid/server", this));
                m_httpServer.AddStreamHandler(new OpenIdProviderStreamHandler("GET", "/openid/server", this));

                // Handlers for the Cable Beach login page
                m_httpServer.AddStreamHandler(new OpenIdLoginStreamHandler("POST", "/login", this));
                m_httpServer.AddStreamHandler(new OpenIdLoginStreamHandler("GET", "/login", this));

                // Handler for the Facebook Connect login path
                m_httpServer.AddStreamHandler(new FacebookStreamHandler("GET", "/facebook/login", this));
            }
        }
开发者ID:AlphaStaxLLC,项目名称:taiga,代码行数:46,代码来源:UserLoginService.cs


注:本文中的OpenSim.Framework.Servers.HttpServer.BaseHttpServer.SetDefaultLLSDHandler方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。