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


C# IUserAccountService.RemoteCalls方法代码示例

本文整理汇总了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 ();
            }
        }
开发者ID:CaseyraeStarfinder,项目名称:WhiteCore-Dev,代码行数:15,代码来源:SystemEstateService.cs

示例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
        }
开发者ID:CaseyraeStarfinder,项目名称:WhiteCore-Dev,代码行数:32,代码来源:BanCheck.cs

示例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 ();
            }
        }
开发者ID:emperorstarfinder,项目名称:Virtual-Universe,代码行数:15,代码来源:SystemEstateService.cs


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