本文整理汇总了C#中IRegionClientCapsService类的典型用法代码示例。如果您正苦于以下问题:C# IRegionClientCapsService类的具体用法?C# IRegionClientCapsService怎么用?C# IRegionClientCapsService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IRegionClientCapsService类属于命名空间,在下文中一共展示了IRegionClientCapsService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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));
}
示例2: RegisterCaps
public void RegisterCaps (IRegionClientCapsService service)
{
m_service = service;
service.AddStreamHandler ("GroupExperiences",
new GenericStreamHandler ("GET", service.CreateCAPS ("GroupExperiences", ""), GroupExperiences));
}
示例3: RegisterCaps
public void RegisterCaps(IRegionClientCapsService service)
{
m_service = service;
service.AddStreamHandler("ViewerStats",
new GenericStreamHandler("POST", service.CreateCAPS("ViewerStats", ""),
ViewerStatsReport));
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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;
}
示例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));
}
示例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));
}
示例11: RegisterCaps
public void RegisterCaps(IRegionClientCapsService service)
{
m_service = service;
m_service.AddStreamHandler("SimulatorFeatures",
new RestHTTPHandler("GET", m_service.CreateCAPS("SimulatorFeatures", ""),
SimulatorFeaturesCAP));
}
示例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));
}
示例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));
}
示例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));*/
}
示例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));
}