本文整理汇总了C#中IRegionClientCapsService.AddStreamHandler方法的典型用法代码示例。如果您正苦于以下问题:C# IRegionClientCapsService.AddStreamHandler方法的具体用法?C# IRegionClientCapsService.AddStreamHandler怎么用?C# IRegionClientCapsService.AddStreamHandler使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IRegionClientCapsService
的用法示例。
在下文中一共展示了IRegionClientCapsService.AddStreamHandler方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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));
}
示例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));
}
示例3: 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 = Aurora.DataManager.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));
}
示例4: RegisterCaps
public void RegisterCaps (IRegionClientCapsService service)
{
var cfgservice = service.ClientCaps.Registry.RequestModuleInterface<ISimulationBase> ();
var displayNamesConfig = cfgservice.ConfigSource.Configs ["DisplayNames"];
if (displayNamesConfig != null) {
if (!displayNamesConfig.GetBoolean ("Enabled", true))
return;
string bannedNamesString = displayNamesConfig.GetString ("BannedUserNames", "");
if (bannedNamesString != "")
bannedNames = new List<string> (bannedNamesString.Split (','));
m_update_days = displayNamesConfig.GetDouble ("UpdateDays", m_update_days);
}
m_service = service;
m_profileConnector = Framework.Utilities.DataManager.RequestPlugin<IProfileConnector> ();
m_eventQueue = service.Registry.RequestModuleInterface<IEventQueueService> ();
m_userService = service.Registry.RequestModuleInterface<IUserAccountService> ();
string post = CapsUtil.CreateCAPS ("SetDisplayName", "");
service.AddStreamHandler ("SetDisplayName", new GenericStreamHandler ("POST", post, ProcessSetDisplayName));
post = CapsUtil.CreateCAPS ("GetDisplayNames", "");
service.AddStreamHandler ("GetDisplayNames", new GenericStreamHandler ("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;
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));
}
示例7: 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));*/
}
示例8: 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));
}
示例9: 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));
}
示例10: 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));
}
示例11: RegisterCaps
public void RegisterCaps(IRegionClientCapsService service)
{
m_service = service;
service.AddStreamHandler("ViewerStats",
new GenericStreamHandler("POST", service.CreateCAPS("ViewerStats", ""),
ViewerStatsReport));
}
示例12: RegisterCaps
public void RegisterCaps (IRegionClientCapsService service)
{
m_service = service;
service.AddStreamHandler ("GroupExperiences",
new GenericStreamHandler ("GET", service.CreateCAPS ("GroupExperiences", ""), GroupExperiences));
}
示例13: RegisterCaps
public void RegisterCaps(IRegionClientCapsService service)
{
m_service = service;
m_service.AddStreamHandler("SimulatorFeatures",
new RestHTTPHandler("GET", m_service.CreateCAPS("SimulatorFeatures", ""),
SimulatorFeaturesCAP));
}
示例14: 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));
}
示例15: 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));
}