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


C# IRegionClientCapsService.CreateCAPS方法代码示例

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


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

示例1: RegisterCaps

        public void RegisterCaps (IRegionClientCapsService service)
        {
            m_service = service;
            m_agentInfoService = service.Registry.RequestModuleInterface<IAgentInfoService> ();
            m_agentProcessing = service.Registry.RequestModuleInterface<IAgentProcessing> ();
            
            HttpServerHandle method;

            service.AddStreamHandler ("AvatarPickerSearch",
                new GenericStreamHandler ("GET", service.CreateCAPS ("AvatarPickerSearch", ""),
                    ProcessAvatarPickerSearch));

            method = delegate(string path, Stream request,
                              OSHttpRequest httpRequest, OSHttpResponse httpResponse) {
                return HomeLocation (request, m_service.AgentID);
            };
            service.AddStreamHandler ("HomeLocation",
                new GenericStreamHandler ("POST", service.CreateCAPS ("HomeLocation", ""),
                    method));

            method = delegate(string path, Stream request,
                              OSHttpRequest httpRequest, OSHttpResponse httpResponse) {
                return TeleportLocation (request, m_service.AgentID);
            };

            service.AddStreamHandler ("TeleportLocation",
                new GenericStreamHandler ("POST", service.CreateCAPS ("TeleportLocation", ""),
                    method));
        }
开发者ID:Virtual-Universe,项目名称:Virtual-Universe,代码行数:29,代码来源:AssortedCAPS.cs

示例2: RegisterCaps

        public void RegisterCaps(IRegionClientCapsService service)
        {
            m_service = service;
            m_gridService = service.Registry.RequestModuleInterface<IGridService>();
            IConfig config =
                service.ClientCaps.Registry.RequestModuleInterface<ISimulationBase>().ConfigSource.Configs["MapCaps"];
            if (config != null)
                m_allowCapsMessage = config.GetBoolean("AllowCapsMessage", m_allowCapsMessage);

#if (!ISWIN)
            RestMethod method = delegate(string request, string path, string param,
                                                                OSHttpRequest httpRequest, OSHttpResponse httpResponse)
            {
                return MapLayerRequest(request, path, param, httpRequest, httpResponse, m_service.AgentID);
            };
#else
            RestMethod method =
                (request, path, param, httpRequest, httpResponse) =>
                MapLayerRequest(request, path, param, httpRequest, httpResponse,
                                m_service.AgentID);
#endif
            m_service.AddStreamHandler("MapLayer",
                                       new RestStreamHandler("POST", m_service.CreateCAPS("MapLayer", m_mapLayerPath),
                                                             method));
            m_service.AddStreamHandler("MapLayerGod",
                                       new RestStreamHandler("POST", m_service.CreateCAPS("MapLayerGod", m_mapLayerPath),
                                                             method));
        }
开发者ID:satlanski2,项目名称:Aurora-Sim,代码行数:28,代码来源:MapCAPS.cs

示例3: RegisterCaps

        public void RegisterCaps(IRegionClientCapsService service)
        {
            m_service = service;
            m_presenceService = service.Registry.RequestModuleInterface<IPresenceService>();
            m_gridUserService = service.Registry.RequestModuleInterface<IGridUserService>();
            
            GenericHTTPMethod method = delegate(Hashtable httpMethod)
            {
                return ProcessUpdateAgentLanguage(httpMethod, m_service.AgentID);
            };
            service.AddStreamHandler("UpdateAgentLanguage", new RestHTTPHandler("POST", service.CreateCAPS("UpdateAgentLanguage", ""),
                                                      method));
            method = delegate(Hashtable httpMethod)
            {
                return ProcessUpdateAgentInfo(httpMethod, m_service.AgentID);
            };
            service.AddStreamHandler("UpdateAgentInformation", new RestHTTPHandler("POST", service.CreateCAPS("UpdateAgentInformation", ""),
                                                      method));

            method = delegate(Hashtable httpMethod)
            {
                return HomeLocation(httpMethod, m_service.AgentID);
            };
            service.AddStreamHandler("HomeLocation", new RestHTTPHandler("POST", service.CreateCAPS("HomeLocation", ""),
                                                      method));
        }
开发者ID:KristenMynx,项目名称:Aurora-Sim,代码行数:26,代码来源:AssortedCAPS.cs

示例4: RegisterCaps

        public void RegisterCaps(IRegionClientCapsService service)
        {
            m_service = service;
            m_assetService = service.Registry.RequestModuleInterface<IAssetService>();
            m_inventoryService = service.Registry.RequestModuleInterface<IInventoryService>();
            m_libraryService = service.Registry.RequestModuleInterface<ILibraryService>();

            RestBytesMethod method = delegate(string request, string path, string param,
                                                                OSHttpRequest httpRequest, OSHttpResponse httpResponse)
            {
                return HandleWebFetchInventoryDescendents(request, m_service.AgentID);
            };
            service.AddStreamHandler("WebFetchInventoryDescendents",
                new RestBytesStreamHandler("POST", service.CreateCAPS("WebFetchInventoryDescendents", ""),
                                                      method));

            method = delegate(string request, string path, string param,
                                                                OSHttpRequest httpRequest, OSHttpResponse httpResponse)
            {
                return HandleFetchLibDescendents(request, m_service.AgentID);
            };
            service.AddStreamHandler("FetchLibDescendents",
                new RestBytesStreamHandler("POST", service.CreateCAPS("FetchLibDescendents", ""),
                                                      method));

            method = delegate(string request, string path, string param,
                                                                OSHttpRequest httpRequest, OSHttpResponse httpResponse)
            {
                return HandleFetchInventory(request, m_service.AgentID);
            };
            service.AddStreamHandler("FetchInventory",
                new RestBytesStreamHandler("POST", service.CreateCAPS("FetchInventory", ""),
                                                      method));

            method = delegate(string request, string path, string param,
                                                                OSHttpRequest httpRequest, OSHttpResponse httpResponse)
            {
                return HandleFetchLib(request, m_service.AgentID);
            };
            service.AddStreamHandler("FetchLib",
                new RestBytesStreamHandler("POST", service.CreateCAPS("FetchLib", ""),
                                                      method));

            service.AddStreamHandler("NewFileAgentInventory",
                new RestStreamHandler("POST", service.CreateCAPS("NewFileAgentInventory", m_newInventory),
                                                      NewAgentInventoryRequest));

            /*method = delegate(string request, string path, string param,
                                                                OSHttpRequest httpRequest, OSHttpResponse httpResponse)
            {
                return HandleInventoryItemCreate(request, m_service.AgentID);
            };
            service.AddStreamHandler("InventoryItemCreate",
                new RestBytesStreamHandler("POST", service.CreateCAPS("InventoryItemCreate", ""),
                                                      method));*/
        }
开发者ID:x8ball,项目名称:Aurora-Sim,代码行数:56,代码来源:InventoryCAPS.cs

示例5: RegisterCaps

        public void RegisterCaps (IRegionClientCapsService service)
        {
            m_service = service;
            
            service.AddStreamHandler ("ExperiencePreferences",
                                      new GenericStreamHandler ("POST", service.CreateCAPS ("ExperiencePreferences", ""), ExperiencePreferences));
            
            service.AddStreamHandler ("FindExperienceByName",
                                      new GenericStreamHandler ("POST", service.CreateCAPS("FindExperienceByName", ""), FindExperienceByName));
            
            service.AddStreamHandler ("GetExperiences",
                                      new GenericStreamHandler ("POST", service.CreateCAPS("GetExperiences", ""), GetExperiences));

            service.AddStreamHandler ("GetExperienceInfo",
                                      new GenericStreamHandler ("POST", service.CreateCAPS("GetExperienceInfo", ""), GetExperienceInfo));
            
            service.AddStreamHandler ("GetAdminExperiences",
                                      new GenericStreamHandler ("POST", service.CreateCAPS("GetAdminExperiences", ""), GetAdminExperiences));
            
            service.AddStreamHandler ("GetCreatorExperiences",
                                      new GenericStreamHandler ("POST", service.CreateCAPS("GetCreatorExperiences", ""), GetCreatorExperiences));
            
            service.AddStreamHandler ("UpdateExperience",
                                      new GenericStreamHandler ("POST", service.CreateCAPS("UpdateExperience", ""), UpdateExperience));
            
            service.AddStreamHandler ("IsExperienceAdmin",
                                      new GenericStreamHandler ("POST", service.CreateCAPS("IsExperienceAdmin", ""), IsExperienceAdmin));

            service.AddStreamHandler ("IsExperienceContributor",
                                      new GenericStreamHandler ("POST", service.CreateCAPS("IsExperienceContributor", ""), IsExperienceContributor));
        }
开发者ID:EnricoNirvana,项目名称:WhiteCore-Dev,代码行数:31,代码来源:AssortedExperiences.cs

示例6: RegisterCaps

 public void RegisterCaps(IRegionClientCapsService service)
 {
     m_service = service;
     m_assetService = service.Registry.RequestModuleInterface<IAssetService>();
     
     service.AddStreamHandler("GetTexture", 
         new StreamHandler("GET", service.CreateCAPS("GetTexture", ""),
                                                 ProcessGetTexture));
     service.AddStreamHandler("UploadBakedTexture", 
         new RestStreamHandler("POST", service.CreateCAPS("UploadBakedTexture", m_uploadBakedTexturePath),
                                                 UploadBakedTexture));
 }
开发者ID:mugginsm,项目名称:Aurora-Sim,代码行数:12,代码来源:AssetCAPS.cs

示例7: RegisterCaps

 public void RegisterCaps(IRegionClientCapsService service)
 {
     m_service = service;
     service.AddStreamHandler("ViewerStats",
                              new GenericStreamHandler("POST", service.CreateCAPS("ViewerStats", ""),
                                                       ViewerStatsReport));
 }
开发者ID:velus,项目名称:Async-Sim-Testing,代码行数:7,代码来源:UserStatsCAPS.cs

示例8: RegisterCaps

 public void RegisterCaps (IRegionClientCapsService service)
 {
     m_service = service;
     
     service.AddStreamHandler ("GroupExperiences",
         new GenericStreamHandler ("GET", service.CreateCAPS ("GroupExperiences", ""), GroupExperiences));
 }
开发者ID:EnricoNirvana,项目名称:WhiteCore-Dev,代码行数:7,代码来源:GroupExperiences.cs

示例9: RegisterCaps

 public void RegisterCaps (IRegionClientCapsService service)
 {
     m_service = service;
     m_profileConnector = Framework.Utilities.DataManager.RequestPlugin<IProfileConnector> ();
     m_service.AddStreamHandler ("MeshUploadFlag",
         new GenericStreamHandler ("GET", m_service.CreateCAPS ("MeshUploadFlag", ""), MeshUploadFlagCAP));
 }
开发者ID:EnricoNirvana,项目名称:WhiteCore-Dev,代码行数:7,代码来源:MeshUploadFlag.cs

示例10: RegisterCaps

        public void RegisterCaps (IRegionClientCapsService service)
        {
            m_service = service;
            m_groupService = Framework.Utilities.DataManager.RequestPlugin<IGroupsServiceConnector> ();

            service.AddStreamHandler ("GroupMemberData",
                new GenericStreamHandler ("POST", service.CreateCAPS ("GroupMemberData", ""), GroupMemberData));
        }
开发者ID:EnricoNirvana,项目名称:WhiteCore-Dev,代码行数:8,代码来源:GroupMemberData.cs

示例11: RegisterCaps

        public void RegisterCaps (IRegionClientCapsService service)
        {
            m_service = service;
            
            HttpServerHandle method = delegate(string path, Stream request, OSHttpRequest httpRequest, OSHttpResponse httpResponse) {
                return ProcessUpdateAgentPreferences (request, m_service.AgentID);
            };

            service.AddStreamHandler ("AgentPreferences",
                new GenericStreamHandler ("POST", service.CreateCAPS ("AgentPreferences", ""), method));
			
            service.AddStreamHandler ("UpdateAgentLanguage",
                new GenericStreamHandler ("POST", service.CreateCAPS ("UpdateAgentLanguage", ""), method));
			
            service.AddStreamHandler ("UpdateAgentInformation",
                new GenericStreamHandler ("POST", service.CreateCAPS ("UpdateAgentInformation", ""), method));
        }
开发者ID:Virtual-Universe,项目名称:Virtual-Universe,代码行数:17,代码来源:AgentPreferences.cs

示例12: RegisterCaps

        public void RegisterCaps(IRegionClientCapsService service)
        {
            m_service = service;

            m_service.AddStreamHandler("SimulatorFeatures",
                                       new RestHTTPHandler("GET", m_service.CreateCAPS("SimulatorFeatures", ""),
                                                           SimulatorFeaturesCAP));
        }
开发者ID:savino1976,项目名称:Aurora-Sim,代码行数:8,代码来源:SimulatorFeatures.cs

示例13: RegisterCaps

        public void RegisterCaps (IRegionClientCapsService service)
        {
            m_service = service;
            m_groupService = Framework.Utilities.DataManager.RequestPlugin<IGroupsServiceConnector> ();

            var apiUri = service.CreateCAPS ("GroupAPIv1", "");
            service.AddStreamHandler ("GroupAPIv1", new GenericStreamHandler ("GET", apiUri, ProcessGetGroupAPI));
            service.AddStreamHandler ("GroupAPIv1", new GenericStreamHandler ("POST", apiUri, ProcessPostGroupAPI));
        }
开发者ID:Virtual-Universe,项目名称:Virtual-Universe,代码行数:9,代码来源:GroupAPIv1.cs

示例14: RegisterCaps

 public void RegisterCaps(IRegionClientCapsService service)
 {
     m_service = service;
     m_userService = service.Registry.RequestModuleInterface<IUserAccountService>();
     m_profileConnector = DataManager.RequestPlugin<IProfileConnector>();
     m_service.AddStreamHandler("MeshUploadFlag",
                                new GenericStreamHandler("GET", m_service.CreateCAPS("MeshUploadFlag", ""),
                                                    MeshUploadFlagCAP));
 }
开发者ID:nathanmarck,项目名称:Aurora-Sim,代码行数:9,代码来源:MeshUploadFlag.cs

示例15: RegisterCaps

        public void RegisterCaps (IRegionClientCapsService service)
        {
            m_service = service;

            m_service.AddStreamHandler ("SimulatorFeatures", new RestHTTPHandler ("GET", m_service.CreateCAPS ("SimulatorFeatures", ""),
                                                      delegate (Hashtable m_dhttpMethod)
                                                      {
                                                          return SimulatorFeaturesCAP (m_dhttpMethod);
                                                      }));
        }
开发者ID:RevolutionSmythe,项目名称:Aurora-Sim,代码行数:10,代码来源:SimulatorFeatures.cs


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