• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# IUserManagement类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IUserManagement的典型用法代码示例。如果您正苦于以下问题:C# IUserManagement类的具体用法?C# IUserManagement怎么用?C# IUserManagement使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IUserManagement类属于命名空间,在下文中一共展示了IUserManagement类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: AccountModule

        public AccountModule(IUserManagement userManagement)
            : base("/account")
        {
            _userManagement = userManagement;

            Get["/login"] = p => View["Login"];
        }
开发者ID:plurby,项目名称:candidate,代码行数:7,代码来源:AccountModule.cs


示例2: GroupsServiceRemoteConnectorModule

        public GroupsServiceRemoteConnectorModule(IConfigSource config, IUserManagement uman)
        {
            Init(config);
            m_UserManagement = uman;
            m_CacheWrapper = new RemoteConnectorCacheWrapper(m_UserManagement);

        }
开发者ID:CassieEllen,项目名称:opensim,代码行数:7,代码来源:GroupsServiceRemoteConnectorModule.cs


示例3: ForeignImporter

		public ForeignImporter(IUserManagement uman)
        {
			if (m_log.IsDebugEnabled) {
				m_log.DebugFormat ("{0} called", System.Reflection.MethodBase.GetCurrentMethod ().Name);
			}

            m_UserManagement = uman;
        }
开发者ID:AkiraSonoda,项目名称:akisim,代码行数:8,代码来源:ForeignImporter.cs


示例4: BusinessManager

 public BusinessManager(IDataAccess dataAccess, IUserManagement userManagement, IAuthenticationManagement authenticationManagement,
     IValidationHelper validationHelper, IRoleManagement roleManagement)//,IModelFactory modelFactory)
 {
     _dataAccess = dataAccess;
     _userManagement = userManagement;
     _authenticationManagement = authenticationManagement;
     _roleManagement = roleManagement;
     _validationHelper = validationHelper;
 }
开发者ID:Christopher-Walton,项目名称:CW.UserManagement,代码行数:9,代码来源:BusinessManager.cs


示例5: ChildManager

 public ChildManager(
     IMiddleManagement MiddleManagement,
     IUserSession UserSession,
     IUserManagement UserManagement,
     IChildRepository ChildRepository,
     ITransactionRepository TransactionRepository)
 {
     middleManagement = MiddleManagement;
     userSession = UserSession;
     userManagement = UserManagement;
     childRepository = ChildRepository;
     transactionRepository = TransactionRepository;
 }
开发者ID:nathanpalmer,项目名称:LittleBanking,代码行数:13,代码来源:ChildManager.cs


示例6: UserController

 public UserController(
     IUserManagement UserManagement,
     IMiddleManagement MiddleManagment,
     IUserSession UserSession,
     IUserAuthentication UserAuthentication,
     IEnumerable<IUserAuthenticator> UserAuthenticators,
     IFormsAuthentication FormsAuthentication,
     IStringHash StringHash)
     : base(MiddleManagment, UserSession, FormsAuthentication)
 {
     userManagement = UserManagement;
     userAuthentication = UserAuthentication;
     userAuthenticators = UserAuthenticators;
     formsAuthentication = FormsAuthentication;
     stringHash = StringHash;
 }
开发者ID:nathanpalmer,项目名称:LittleBanking,代码行数:16,代码来源:UserController.cs


示例7: AuthorizationService

        public AuthorizationService(IConfig config, Scene scene)
        {
            m_Scene = scene;
            m_UserManagement = scene.RequestModuleInterface<IUserManagement>();
            m_GridService = scene.GridService;

            if (config != null)
            {
                string accessStr = config.GetString("Region_" + scene.RegionInfo.RegionName.Replace(' ', '_'), String.Empty);
                if (accessStr != string.Empty)
                {
                    try
                    {
                        m_accessValue = (AccessFlags)Enum.Parse(typeof(AccessFlags), accessStr);
                    }
                    catch (ArgumentException)
                    {
                        m_log.WarnFormat("[AuthorizationService]: {0} is not a valid access flag", accessStr);
                    }
                }
                m_log.DebugFormat("[AuthorizationService]: Region {0} access restrictions: {1}", m_Scene.RegionInfo.RegionName, m_accessValue);
            }

        }
开发者ID:JAllard,项目名称:osmodified,代码行数:24,代码来源:AuthorizationService.cs


示例8: RegionLoaded

        public virtual void RegionLoaded(Scene s)
        {
            if (!m_Enabled)
                return;

            m_UserManager = m_scene.RequestModuleInterface<IUserManagement>();
            m_scene.EventManager.OnRegisterCaps += RegisterCaps;
        }
开发者ID:emperorstarfinder,项目名称:Opensim2,代码行数:8,代码来源:GetDisplayNamesModule.cs


示例9: RegionLoaded

        public void RegionLoaded(Scene scene)
        {
//            m_log.DebugFormat("[APPEARANCE INFO MODULE]: REGION {0} LOADED", scene.RegionInfo.RegionName);

            if (m_scene == null)
                m_scene = scene;

            m_friendsModule = m_scene.RequestModuleInterface<IFriendsModule>();
            m_userManagementModule = m_scene.RequestModuleInterface<IUserManagement>();
            m_presenceService = m_scene.RequestModuleInterface<IPresenceService>();

            if (m_friendsModule != null && m_userManagementModule != null && m_presenceService != null)
            {
                m_scene.AddCommand(
                    "Friends", this, "friends show",
                    "friends show [--cache] <first-name> <last-name>",
                    "Show the friends for the given user if they exist.\n",
                    "The --cache option will show locally cached information for that user.",
                    HandleFriendsShowCommand);
            }
        }
开发者ID:BogusCurry,项目名称:arribasim-dev,代码行数:21,代码来源:FriendsCommandsModule.cs


示例10: CreateAutentication

 public IAutentication CreateAutentication(IUserManagement userManagement)
 {
     return new Autentication.Autentication(userManagement);
 }
开发者ID:jruncik,项目名称:Tiskarna,代码行数:4,代码来源:CoreFactory.cs


示例11: RegionLoaded

 public void RegionLoaded(Scene scene)
 {
      m_userManager = m_scene.RequestModuleInterface<IUserManagement>();         
      m_primCountModule = m_scene.RequestModuleInterface<IPrimCountModule>();
      m_Dialog = m_scene.RequestModuleInterface<IDialogModule>();
 }
开发者ID:AkiraSonoda,项目名称:akisim,代码行数:6,代码来源:LandManagementModule.cs


示例12: GetDisplayNamesHandler

 public GetDisplayNamesHandler(string path, IUserManagement umService, string name, string description)
     : base("GET", path, name, description)
 {
     m_UserManagement = umService;
 }
开发者ID:RadaSangOn,项目名称:workCore2,代码行数:5,代码来源:GetDisplayNamesHandler.cs


示例13: RegionLoaded

        public void RegionLoaded(Scene scene)
        {
            if (!m_Enabled)
                return;

            if (m_UserManagement == null)
            {
                m_UserManagement = scene.RequestModuleInterface<IUserManagement>();
                m_OfflineIM = scene.RequestModuleInterface<IOfflineIMService>();
                m_Messaging = scene.RequestModuleInterface<IMessageTransferModule>();
                m_ForeignImporter = new ForeignImporter(m_UserManagement);

                if (m_ServiceLocation.Equals("local"))
                {
                    m_LocalGroupsConnector = new GroupsServiceLocalConnectorModule(m_Config, m_UserManagement);
                    // Also, if local, create the endpoint for the HGGroupsService
                    new HGGroupsServiceRobustConnector(m_Config, MainServer.Instance, string.Empty, 
                        scene.RequestModuleInterface<IOfflineIMService>(), scene.RequestModuleInterface<IUserAccountService>());

                }
                else
                    m_LocalGroupsConnector = new GroupsServiceRemoteConnectorModule(m_Config, m_UserManagement);

                m_CacheWrapper = new RemoteConnectorCacheWrapper(m_UserManagement);
            }

        }
开发者ID:BogusCurry,项目名称:arribasim-dev,代码行数:27,代码来源:GroupsServiceHGConnectorModule.cs


示例14: RemoteConnectorCacheWrapper

 public RemoteConnectorCacheWrapper(IUserManagement uman)
 {
     m_ForeignImporter = new ForeignImporter(uman);
 }
开发者ID:CassieEllen,项目名称:opensim,代码行数:4,代码来源:RemoteConnectorCacheWrapper.cs


示例15: SOPToXml2

        public static void SOPToXml2(XmlTextWriter writer, SceneObjectPart sop, Dictionary<string, object> options)
        {
            writer.WriteStartElement("SceneObjectPart");
            writer.WriteAttributeString("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance");
            writer.WriteAttributeString("xmlns:xsd", "http://www.w3.org/2001/XMLSchema");

            writer.WriteElementString("AllowedDrop", sop.AllowedDrop.ToString().ToLower());

            WriteUUID(writer, "CreatorID", sop.CreatorID, options);

            if (sop.CreatorData != null && sop.CreatorData != string.Empty)
                writer.WriteElementString("CreatorData", sop.CreatorData);
            else if (options.ContainsKey("home"))
            {
                if (m_UserManagement == null)
                    m_UserManagement = sop.ParentGroup.Scene.RequestModuleInterface<IUserManagement>();
                string name = m_UserManagement.GetUserName(sop.CreatorID);
                writer.WriteElementString("CreatorData", (string)options["home"] + ";" + name);
            }

            WriteUUID(writer, "FolderID", sop.FolderID, options);
            writer.WriteElementString("InventorySerial", sop.InventorySerial.ToString());

            WriteTaskInventory(writer, sop.TaskInventory, options, sop.ParentGroup.Scene);

            WriteUUID(writer, "UUID", sop.UUID, options);
            writer.WriteElementString("LocalId", sop.LocalId.ToString());
            writer.WriteElementString("Name", sop.Name);
            writer.WriteElementString("Material", sop.Material.ToString());
            writer.WriteElementString("PassTouches", sop.PassTouches.ToString().ToLower());
            writer.WriteElementString("PassCollisions", sop.PassCollisions.ToString().ToLower());
            writer.WriteElementString("RegionHandle", sop.RegionHandle.ToString());
            writer.WriteElementString("ScriptAccessPin", sop.ScriptAccessPin.ToString());

            WriteVector(writer, "GroupPosition", sop.GroupPosition);
            WriteVector(writer, "OffsetPosition", sop.OffsetPosition);

            WriteQuaternion(writer, "RotationOffset", sop.RotationOffset);
            WriteVector(writer, "Velocity", sop.Velocity);
            WriteVector(writer, "AngularVelocity", sop.AngularVelocity);
            WriteVector(writer, "Acceleration", sop.Acceleration);
            writer.WriteElementString("Description", sop.Description);

            writer.WriteStartElement("Color");
            writer.WriteElementString("R", sop.Color.R.ToString(Utils.EnUsCulture));
            writer.WriteElementString("G", sop.Color.G.ToString(Utils.EnUsCulture));
            writer.WriteElementString("B", sop.Color.B.ToString(Utils.EnUsCulture));
            writer.WriteElementString("A", sop.Color.A.ToString(Utils.EnUsCulture));
            writer.WriteEndElement();

            writer.WriteElementString("Text", sop.Text);
            writer.WriteElementString("SitName", sop.SitName);
            writer.WriteElementString("TouchName", sop.TouchName);

            writer.WriteElementString("LinkNum", sop.LinkNum.ToString());
            writer.WriteElementString("ClickAction", sop.ClickAction.ToString());

            WriteShape(writer, sop.Shape, options);

            WriteVector(writer, "Scale", sop.Scale);
            WriteQuaternion(writer, "SitTargetOrientation", sop.SitTargetOrientation); 
            WriteVector(writer, "SitTargetPosition", sop.SitTargetPosition);
            WriteVector(writer, "SitTargetPositionLL", sop.SitTargetPositionLL);
            WriteQuaternion(writer, "SitTargetOrientationLL", sop.SitTargetOrientationLL);
            writer.WriteElementString("ParentID", sop.ParentID.ToString());
            writer.WriteElementString("CreationDate", sop.CreationDate.ToString());
            writer.WriteElementString("Category", sop.Category.ToString());
            writer.WriteElementString("SalePrice", sop.SalePrice.ToString());
            writer.WriteElementString("ObjectSaleType", sop.ObjectSaleType.ToString());
            writer.WriteElementString("OwnershipCost", sop.OwnershipCost.ToString());
            WriteUUID(writer, "GroupID", sop.GroupID, options);

            UUID ownerID = options.ContainsKey("wipe-owners") ? UUID.Zero : sop.OwnerID;
            WriteUUID(writer, "OwnerID", ownerID, options);

            UUID lastOwnerID = options.ContainsKey("wipe-owners") ? UUID.Zero : sop.LastOwnerID;
            WriteUUID(writer, "LastOwnerID", lastOwnerID, options);

            writer.WriteElementString("BaseMask", sop.BaseMask.ToString());
            writer.WriteElementString("OwnerMask", sop.OwnerMask.ToString());
            writer.WriteElementString("GroupMask", sop.GroupMask.ToString());
            writer.WriteElementString("EveryoneMask", sop.EveryoneMask.ToString());
            writer.WriteElementString("NextOwnerMask", sop.NextOwnerMask.ToString());
            WriteFlags(writer, "Flags", sop.Flags.ToString(), options);
            WriteUUID(writer, "CollisionSound", sop.CollisionSound, options);
            writer.WriteElementString("CollisionSoundVolume", sop.CollisionSoundVolume.ToString());
            if (sop.MediaUrl != null)
                writer.WriteElementString("MediaUrl", sop.MediaUrl.ToString());
            WriteBytes(writer, "TextureAnimation", sop.TextureAnimation);
            WriteBytes(writer, "ParticleSystem", sop.ParticleSystem);
            writer.WriteElementString("PayPrice0", sop.PayPrice[0].ToString());
            writer.WriteElementString("PayPrice1", sop.PayPrice[1].ToString());
            writer.WriteElementString("PayPrice2", sop.PayPrice[2].ToString());
            writer.WriteElementString("PayPrice3", sop.PayPrice[3].ToString());
            writer.WriteElementString("PayPrice4", sop.PayPrice[4].ToString());

            writer.WriteEndElement();
        }
开发者ID:JAllard,项目名称:opensim,代码行数:98,代码来源:SceneObjectSerializer.cs


示例16: RegionLoaded

        public override void RegionLoaded(Scene scene)
        {
            if (!m_Enabled)
                return;

            base.RegionLoaded(scene);
            ISimulatorFeaturesModule featuresModule = m_scene.RequestModuleInterface<ISimulatorFeaturesModule>();

            if (featuresModule != null)
                featuresModule.OnSimulatorFeaturesRequest += OnSimulatorFeaturesRequest;

            m_UserManagement = m_scene.RequestModuleInterface<IUserManagement>();

        }
开发者ID:AkiraSonoda,项目名称:akisim,代码行数:14,代码来源:HGWorldMapModule.cs


示例17: GroupsServiceLocalConnectorModule

 public GroupsServiceLocalConnectorModule(IConfigSource config, IUserManagement uman)
 {
     Init(config);
     m_UserManagement = uman;
     m_ForeignImporter = new ForeignImporter(uman);
 }
开发者ID:BogusCurry,项目名称:arribasim-dev,代码行数:6,代码来源:GroupsServiceLocalConnectorModule.cs


示例18: RegionLoaded

        public void RegionLoaded(Scene scene)
        {
            if (!m_Enabled)
                return;

            if (m_UserManagement == null)
            {
                m_UserManagement = scene.RequestModuleInterface<IUserManagement>();
                m_ForeignImporter = new ForeignImporter(m_UserManagement);
            }
        }
开发者ID:BogusCurry,项目名称:arribasim-dev,代码行数:11,代码来源:GroupsServiceLocalConnectorModule.cs


示例19: ForeignImporter

 public ForeignImporter(IUserManagement uman)
 {
     m_UserManagement = uman;
 }
开发者ID:SignpostMarv,项目名称:opensim,代码行数:4,代码来源:ForeignImporter.cs


示例20: Autentication

 public Autentication(IUserManagement userManagement)
 {
     _userManagement = userManagement;
 }
开发者ID:jruncik,项目名称:Reservito,代码行数:4,代码来源:Autentication.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IUserManager类代码示例发布时间:2022-05-24
下一篇:
C# IUserInterface类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap