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

C# IUserInfo类代码示例

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

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



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

示例1: MsSqlExecuter

 public MsSqlExecuter(ConnectionString connectionString, ILogProvider logProvider, IUserInfo userInfo)
 {
     _connectionString = connectionString;
     _userInfo = userInfo;
     _logger = logProvider.GetLogger("MsSqlExecuter");
     _performanceLogger = logProvider.GetLogger("Performance");
 }
开发者ID:kmeze,项目名称:Rhetos,代码行数:7,代码来源:MsSqlExecuter.cs


示例2: KnowledgeReplyController

 public KnowledgeReplyController(IKnowledgeReplyService iKnowledgeReplyService, IUnitOfWork unitOfWork,
     IUserInfo iUserInfo)
 {
     _iKnowledgeReplyService = iKnowledgeReplyService;
     _unitOfWork = unitOfWork;
     _iUserInfo = iUserInfo;
 }
开发者ID:b9502032,项目名称:MySite,代码行数:7,代码来源:KnowledgeReplyController.cs


示例3: ProjectInfoStateController

 public ProjectInfoStateController(IProjectInfoStateService iProjectInfoStateService, IUserInfo iUserInfo,
     IUnitOfWork unitOfWork)
 {
     _iProjectInfoStateService = iProjectInfoStateService;
     _iUserInfo = iUserInfo;
     _unitOfWork = unitOfWork;
 }
开发者ID:b9502032,项目名称:MySite,代码行数:7,代码来源:ProjectInfoStateController.cs


示例4: PersistenceTransaction

 public PersistenceTransaction(ILogProvider logProvider, ConnectionString connectionString, IUserInfo userInfo)
 {
     _logger = logProvider.GetLogger(GetType().Name);
     _connectionString = connectionString;
     _userInfo = userInfo;
     _persistenceTransactionId = Interlocked.Increment(ref _counter);
 }
开发者ID:tjakopovic,项目名称:Rhetos,代码行数:7,代码来源:PersistenceTransaction.cs


示例5: MessageController

 public MessageController(IMessageService iMessageService, IUserInfo iUserInfo, IUnitOfWork unitOfWork, IMessenger iMessenger)
 {
     _iMessageService = iMessageService;
     _iUserInfo = iUserInfo;
     _unitOfWork = unitOfWork;
     _iMessenger = iMessenger;
 }
开发者ID:b9502032,项目名称:MySite,代码行数:7,代码来源:MessageController.cs


示例6: SysDepartmentController

 public SysDepartmentController(ISysDepartmentService sysDepartmentService, IUnitOfWork unitOfWork,
     IUserInfo userInfo)
 {
     _sysDepartmentService = sysDepartmentService;
     _unitOfWork = unitOfWork;
     _userInfo = userInfo;
 }
开发者ID:b9502032,项目名称:MySite,代码行数:7,代码来源:SysDepartmentController.cs


示例7: MyFollowWorkController

 //
 // GET: /WebApi/MyFollowWork/
 public MyFollowWorkController(IProjectInfoService iProjectInfoService, IUserInfo iUserInfo, IUnitOfWork unitOfWork, IProjectUserService iProjectUserService)
 {
     _iProjectInfoService = iProjectInfoService;
     _iUserInfo = iUserInfo;
     _unitOfWork = unitOfWork;
     _iProjectUserService = iProjectUserService;
 }
开发者ID:b9502032,项目名称:MySite,代码行数:9,代码来源:MyFollowWorkController.cs


示例8: ChatController

 public ChatController(IUserInfo iUserInfo, ISysSignalRService iSysSignalRService,
     ISysDepartmentService iSysDepartmentService)
 {
     _iUserInfo = iUserInfo;
     _iSysSignalRService = iSysSignalRService;
     _iSysDepartmentService = iSysDepartmentService;
 }
开发者ID:b9502032,项目名称:MySite,代码行数:7,代码来源:ChatController.cs


示例9: ProjectInfoReplyController

 public ProjectInfoReplyController(IProjectInfoReplyService iProjectInfoReplyService, IUnitOfWork unitOfWork,
     IUserInfo iUserInfo)
 {
     _iProjectInfoReplyService = iProjectInfoReplyService;
     _unitOfWork = unitOfWork;
     _iUserInfo = iUserInfo;
 }
开发者ID:b9502032,项目名称:MySite,代码行数:7,代码来源:ProjectInfoReplyController.cs


示例10: MyParticipateWorkController

 public MyParticipateWorkController(IProjectInfoService iProjectInfoService, IUserInfo iUserInfo,
     IUnitOfWork unitOfWork)
 {
     _iProjectInfoService = iProjectInfoService;
     _iUserInfo = iUserInfo;
     _unitOfWork = unitOfWork;
 }
开发者ID:b9502032,项目名称:MySite,代码行数:7,代码来源:MyParticipateWorkController.cs


示例11: ProcessingEngine

 public ProcessingEngine(
     IPluginsContainer<ICommandImplementation> commandRepository,
     IPluginsContainer<ICommandObserver> commandObservers,
     ILogProvider logProvider,
     IPersistenceTransaction persistenceTransaction,
     IAuthorizationManager authorizationManager,
     XmlUtility xmlUtility,
     IUserInfo userInfo,
     ISqlUtility sqlUtility,
     ILocalizer localizer)
 {
     _commandRepository = commandRepository;
     _commandObservers = commandObservers;
     _logger = logProvider.GetLogger("ProcessingEngine");
     _performanceLogger = logProvider.GetLogger("Performance");
     _requestLogger = logProvider.GetLogger("ProcessingEngine Request");
     _commandsLogger = logProvider.GetLogger("ProcessingEngine Commands");
     _commandsResultLogger = logProvider.GetLogger("ProcessingEngine CommandsResult");
     _persistenceTransaction = persistenceTransaction;
     _authorizationManager = authorizationManager;
     _xmlUtility = xmlUtility;
     _userInfo = userInfo;
     _sqlUtility = sqlUtility;
     _localizer = localizer;
 }
开发者ID:davorpr1,项目名称:Rhetos,代码行数:25,代码来源:ProcessingEngine.cs


示例12: IndexController

 public IndexController(ISysControllerService sysControllerService, ISysUserService sysUserService, IUnitOfWork unitOfWork, IUserInfo userInfo)
 {
     _sysControllerService = sysControllerService;
     _sysUserService = sysUserService;
     _unitOfWork = unitOfWork;
     _userInfo = userInfo;
 }
开发者ID:b9502032,项目名称:MySite,代码行数:7,代码来源:IndexController.cs


示例13: InsertOrUpdateAsync

        public async Task InsertOrUpdateAsync(IUserInfo userInfo)
        {
            using (var context = new EFContext())
            {
                if (userInfo == null)
                    throw new ArgumentNullException(nameof(userInfo));

                var oldUserInfo = await context.UserInfos
                    .FirstOrDefaultAsync(x => x.VkUserId == userInfo.VkUserId);

                if (oldUserInfo != null)
                {
                    oldUserInfo.FirstName = userInfo.FirstName;
                    oldUserInfo.LastName = userInfo.LastName;
                    oldUserInfo.Photo100 = userInfo.Photo100;
                }
                else
                {
                    var newUserInfo = new UserInfo
                    {
                        Id = Guid.NewGuid(),
                        VkUserId = userInfo.VkUserId,
                        FirstName = userInfo.FirstName,
                        LastName = userInfo.LastName,
                        Photo100 = userInfo.Photo100
                    };

                    context.UserInfos.Add(newUserInfo);
                }

                await context.SaveChangesAsync();
            }
        }
开发者ID:ukionik,项目名称:VDesktopeNew,代码行数:33,代码来源:UserInfoService.cs


示例14: Create

        public AudioSource Create(string name, IUserInfo owner, AudioCodecArgs audioArgs)
        {
            if (name == null)
                throw new ArgumentNullException ("name");
            if (owner == null)
                throw new ArgumentNullException ("owner");
            if (audioArgs == null)
                throw new ArgumentNullException ("audioArgs");

            if (OwnedSources.Contains (owner.UserId))
            {
                if (OwnedSources[owner.UserId].Any (s => s.Name == name))
                    throw new ArgumentException ("Duplicate source name", "name");
            }

            int id = 1;
            if (Sources.Keys.Any())
                id = Sources.Keys.Max() + 1;

            var source = new AudioSource (name, id, owner.UserId, audioArgs);

            Sources.Add (source.Id, source);
            OwnedSources.Add (owner.UserId, source);

            return source;
        }
开发者ID:ermau,项目名称:Gablarski,代码行数:26,代码来源:ServerSourceManager.cs


示例15: ActivityController

 public ActivityController(IActivityService iActivityService,
     IUnitOfWork unitOfWork, IUserInfo iUserInfo)
 {
     _iActivityService = iActivityService;
     _unitOfWork = unitOfWork;
     _IUserInfo = iUserInfo;
 }
开发者ID:b9502032,项目名称:MySite,代码行数:7,代码来源:ActivityController.cs


示例16: GenSecurityKey

 public string GenSecurityKey(IUserInfo user)
 {
     ObjectId _uid;
     if (!ObjectId.TryParse(user.Id, out _uid)) throw new Exception("Wrong uid");
     var key = string.Format("{0}{1}{2}{3}{4}", user.Account, user.Name, user.Email, _uid.Pid, _uid.CreationTime.ToString("yyyyMMddHHmmss"));
     return string.Format("{0}{1}", key.ToMD5(), key.ToSHA1());
 }
开发者ID:WinHuStudio,项目名称:iTrip,代码行数:7,代码来源:SecurityManager.cs


示例17: CustomerTypeController

 public CustomerTypeController(ICustomerTypeService iCustomerTypeService, IUserInfo iUserInfo,
     IUnitOfWork unitOfWork)
 {
     _iCustomerTypeService = iCustomerTypeService;
     _iUserInfo = iUserInfo;
     _unitOfWork = unitOfWork;
 }
开发者ID:b9502032,项目名称:MySite,代码行数:7,代码来源:CustomerTypeController.cs


示例18: BusinessStateController

 public BusinessStateController(IBusinessStateService iBusinessStateService, IUserInfo iUserInfo,
     IUnitOfWork unitOfWork)
 {
     _iBusinessStateService = iBusinessStateService;
     _iUserInfo = iUserInfo;
     _unitOfWork = unitOfWork;
 }
开发者ID:b9502032,项目名称:MySite,代码行数:7,代码来源:BusinessStateController.cs


示例19: MyPlanController

 public MyPlanController(IUserInfo iUserInfo, IPlanService iPlanService, IUnitOfWork unitOfWork,
     IProjectInfoService iProjectInfoService)
 {
     _iUserInfo = iUserInfo;
     _iPlanService = iPlanService;
     _unitOfWork = unitOfWork;
     _iProjectInfoService = iProjectInfoService;
 }
开发者ID:b9502032,项目名称:MySite,代码行数:8,代码来源:MyPlanController.cs


示例20: UserJoinedMessage

        public UserJoinedMessage(IUserInfo userInfo)
            : base(GablarskiMessageType.UserJoined)
        {
            if (userInfo == null)
                throw new ArgumentNullException ("userInfo");

            this.UserInfo = userInfo;
        }
开发者ID:ermau,项目名称:Gablarski,代码行数:8,代码来源:UserJoinedMessage.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# IUserInterface类代码示例发布时间:2022-05-24
下一篇:
C# IUserIdentifier类代码示例发布时间: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