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


C# IUserInfo类代码示例

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


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


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