本文整理汇总了C#中IUserAccountService.RemoteCalls方法的典型用法代码示例。如果您正苦于以下问题:C# IUserAccountService.RemoteCalls方法的具体用法?C# IUserAccountService.RemoteCalls怎么用?C# IUserAccountService.RemoteCalls使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IUserAccountService
的用法示例。
在下文中一共展示了IUserAccountService.RemoteCalls方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FinishedStartup
public void FinishedStartup()
{
m_accountService = m_registry.RequestModuleInterface<IUserAccountService> ();
m_estateConnector = Framework.Utilities.DataManager.RequestPlugin<IEstateConnector> ();
// these are only valid if we are local
if (!m_accountService.RemoteCalls ())
{
// check and/or create default system estates
CheckSystemEstateInfo (Constants.SystemEstateID, systemEstateName, (UUID) Constants.RealEstateOwnerUUID);
CheckSystemEstateInfo (Constants.MainlandEstateID, mainlandEstateName, (UUID) Constants.GovernorUUID);
AddCommands ();
}
}
示例2: BanCheck
public BanCheck(IConfigSource source, IUserAccountService UserAccountService)
{
IConfig config = source.Configs["GrieferProtection"];
if (config == null)
return;
m_enabled = config.GetBoolean("Enabled", true);
if (!m_enabled)
return;
string bannedViewers = config.GetString("ViewersToBan", "");
m_bannedViewers = Util.ConvertToList(bannedViewers, false);
string allowedViewers = config.GetString("ViewersToAllow", "");
m_allowedViewers = Util.ConvertToList(allowedViewers, false);
m_useIncludeList = config.GetBoolean("UseAllowListInsteadOfBanList", false);
m_checkOnLogin = config.GetBoolean("CheckForSimilaritiesOnLogin", m_checkOnLogin);
m_checkOnTimer = config.GetBoolean("CheckForSimilaritiesOnTimer", m_checkOnTimer);
if (m_checkOnTimer)
_checkForSimilaritiesLater.Start(5, CheckForSimilaritiesMultiple);
GrieferAllowLevel =
(AllowLevel) Enum.Parse(typeof (AllowLevel), config.GetString("GrieferAllowLevel", "AllowKnown"));
presenceInfo = Framework.Utilities.DataManager.RequestPlugin<IPresenceInfo>();
m_accountService = UserAccountService;
if (!m_accountService.RemoteCalls())
AddCommands (); // only add if we are local
}
示例3: FinishedStartup
public void FinishedStartup()
{
m_accountService = m_registry.RequestModuleInterface<IUserAccountService>();
m_estateConnector = Framework.Utilities.DataManager.RequestPlugin<IEstateConnector>();
// these are only valid if we are local
if (!m_accountService.RemoteCalls())
{
// check and/or create default RealEstate user
CheckSystemUserInfo ();
CheckSystemEstateInfo ();
AddCommands ();
}
}