本文整理汇总了C#中IRegionClientCapsService类的典型用法代码示例。如果您正苦于以下问题:C# IRegionClientCapsService类的具体用法?C# IRegionClientCapsService怎么用?C# IRegionClientCapsService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IRegionClientCapsService类属于命名空间,在下文中一共展示了IRegionClientCapsService类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: RegisterCaps
public void RegisterCaps(IRegionClientCapsService service)
{
m_service = service;
m_agentInfoService = service.Registry.RequestModuleInterface<IAgentInfoService>();
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));
service.AddStreamHandler ("AvatarPickerSearch", new StreamHandler ("GET", service.CreateCAPS("AvatarPickerSearch", ""),
ProcessAvatarPickerSearch));
method = delegate(Hashtable httpMethod)
{
return HomeLocation(httpMethod, m_service.AgentID);
};
service.AddStreamHandler("HomeLocation", new RestHTTPHandler("POST", service.CreateCAPS("HomeLocation", ""),
method));
}
开发者ID:RevolutionSmythe,项目名称:Aurora-Sim,代码行数:28,代码来源:AssortedCAPS.cs
示例2: 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
示例3: 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
示例4: RegisterCaps
public void RegisterCaps(IRegionClientCapsService service)
{
IConfig displayNamesConfig =
service.ClientCaps.Registry.RequestModuleInterface<ISimulationBase>().ConfigSource.Configs[
"DisplayNamesModule"];
if (displayNamesConfig != null)
{
if (!displayNamesConfig.GetBoolean("Enabled", true))
return;
string bannedNamesString = displayNamesConfig.GetString("BannedUserNames", "");
if (bannedNamesString != "")
bannedNames = new List<string>(bannedNamesString.Split(','));
}
m_service = service;
m_profileConnector = DataManager.RequestPlugin<IProfileConnector>();
m_eventQueue = service.Registry.RequestModuleInterface<IEventQueueService>();
m_userService = service.Registry.RequestModuleInterface<IUserAccountService>();
string post = CapsUtil.CreateCAPS("SetDisplayName", "");
service.AddCAPS("SetDisplayName", post);
service.AddStreamHandler("SetDisplayName", new RestHTTPHandler("POST", post,
ProcessSetDisplayName));
post = CapsUtil.CreateCAPS("GetDisplayNames", "");
service.AddCAPS("GetDisplayNames", post);
service.AddStreamHandler("GetDisplayNames", new StreamHandler("GET", post,
ProcessGetDisplayName));
}
开发者ID:Gnu32,项目名称:Silverfin,代码行数:28,代码来源:DisplayNamesCAPS.cs
示例5: 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:CaseyraeStarfinder,项目名称:WhiteCore-Dev,代码行数:27,代码来源:AssortedCAPS.cs
示例6: 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
示例7: 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
示例8: AddClientToRegion
/// <summary>
/// Add this client to the region
/// </summary>
/// <param name="service"></param>
public void AddClientToRegion(IRegionClientCapsService service)
{
if (!m_clientsInThisRegion.ContainsKey(service.AgentID))
m_clientsInThisRegion.Add(service.AgentID, service);
else //Update the client then... this shouldn't ever happen!
m_clientsInThisRegion[service.AgentID] = service;
}
开发者ID:mugginsm,项目名称:Aurora-Sim,代码行数:11,代码来源:PerRegionCapsService.cs
示例9: 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
示例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;
m_service.AddStreamHandler("SimulatorFeatures",
new RestHTTPHandler("GET", m_service.CreateCAPS("SimulatorFeatures", ""),
SimulatorFeaturesCAP));
}
开发者ID:savino1976,项目名称:Aurora-Sim,代码行数:8,代码来源:SimulatorFeatures.cs
示例12: 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
示例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_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
示例15: RegisterCaps
public void RegisterCaps (IRegionClientCapsService service)
{
m_service = service;
// retrieve our god's if needed
InitGodNames ();
m_service.AddStreamHandler ("SimulatorFeatures",
new GenericStreamHandler ("GET", m_service.CreateCAPS ("SimulatorFeatures", ""), SimulatorFeaturesCAP));
}
开发者ID:Virtual-Universe,项目名称:Virtual-Universe,代码行数:10,代码来源:SimulatorFeatures.cs
示例16: RegisterCaps
public void RegisterCaps(IRegionClientCapsService service)
{
m_service = service;
m_imService = service.Registry.RequestModuleInterface<IInstantMessagingService>();
if (m_imService != null)
{
service.AddStreamHandler("ChatSessionRequest",
new GenericStreamHandler("POST", service.CreateCAPS("ChatSessionRequest", ""), ChatSessionRequest));
}
}
开发者ID:EnricoNirvana,项目名称:WhiteCore-Dev,代码行数:10,代码来源:InstantMessageCAPS.cs
示例17: 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
示例18: RegisterCaps
public void RegisterCaps(UUID agentID, IRegionClientCapsService caps)
{
UUID capuuid = UUID.Random();
caps.AddStreamHandler("ViewerStartAuction",
new RestHTTPHandler("POST", "/CAPS/" + capuuid + "/",
delegate(Hashtable m_dhttpMethod)
{
return ViewerStartAuction(m_dhttpMethod, capuuid);
}));
}
开发者ID:KristenMynx,项目名称:Aurora-Sim,代码行数:11,代码来源:AuctionModule.cs
示例19: 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 RestHTTPHandler("GET", m_service.CreateCAPS("MeshUploadFlag", ""),
delegate(Hashtable m_dhttpMethod)
{
return MeshUploadFlagCAP(m_dhttpMethod);
}));
}
开发者ID:NickyPerian,项目名称:Aurora-Sim,代码行数:11,代码来源:MeshUploadFlag.cs
示例20: 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:rknop,项目名称:Aurora-Sim,代码行数:12,代码来源:AssetCAPS.cs
注:本文中的IRegionClientCapsService类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论