本文整理汇总了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");
}
示例2: KnowledgeReplyController
public KnowledgeReplyController(IKnowledgeReplyService iKnowledgeReplyService, IUnitOfWork unitOfWork,
IUserInfo iUserInfo)
{
_iKnowledgeReplyService = iKnowledgeReplyService;
_unitOfWork = unitOfWork;
_iUserInfo = iUserInfo;
}
示例3: ProjectInfoStateController
public ProjectInfoStateController(IProjectInfoStateService iProjectInfoStateService, IUserInfo iUserInfo,
IUnitOfWork unitOfWork)
{
_iProjectInfoStateService = iProjectInfoStateService;
_iUserInfo = iUserInfo;
_unitOfWork = unitOfWork;
}
示例4: PersistenceTransaction
public PersistenceTransaction(ILogProvider logProvider, ConnectionString connectionString, IUserInfo userInfo)
{
_logger = logProvider.GetLogger(GetType().Name);
_connectionString = connectionString;
_userInfo = userInfo;
_persistenceTransactionId = Interlocked.Increment(ref _counter);
}
示例5: MessageController
public MessageController(IMessageService iMessageService, IUserInfo iUserInfo, IUnitOfWork unitOfWork, IMessenger iMessenger)
{
_iMessageService = iMessageService;
_iUserInfo = iUserInfo;
_unitOfWork = unitOfWork;
_iMessenger = iMessenger;
}
示例6: SysDepartmentController
public SysDepartmentController(ISysDepartmentService sysDepartmentService, IUnitOfWork unitOfWork,
IUserInfo userInfo)
{
_sysDepartmentService = sysDepartmentService;
_unitOfWork = unitOfWork;
_userInfo = userInfo;
}
示例7: MyFollowWorkController
//
// GET: /WebApi/MyFollowWork/
public MyFollowWorkController(IProjectInfoService iProjectInfoService, IUserInfo iUserInfo, IUnitOfWork unitOfWork, IProjectUserService iProjectUserService)
{
_iProjectInfoService = iProjectInfoService;
_iUserInfo = iUserInfo;
_unitOfWork = unitOfWork;
_iProjectUserService = iProjectUserService;
}
示例8: ChatController
public ChatController(IUserInfo iUserInfo, ISysSignalRService iSysSignalRService,
ISysDepartmentService iSysDepartmentService)
{
_iUserInfo = iUserInfo;
_iSysSignalRService = iSysSignalRService;
_iSysDepartmentService = iSysDepartmentService;
}
示例9: ProjectInfoReplyController
public ProjectInfoReplyController(IProjectInfoReplyService iProjectInfoReplyService, IUnitOfWork unitOfWork,
IUserInfo iUserInfo)
{
_iProjectInfoReplyService = iProjectInfoReplyService;
_unitOfWork = unitOfWork;
_iUserInfo = iUserInfo;
}
示例10: MyParticipateWorkController
public MyParticipateWorkController(IProjectInfoService iProjectInfoService, IUserInfo iUserInfo,
IUnitOfWork unitOfWork)
{
_iProjectInfoService = iProjectInfoService;
_iUserInfo = iUserInfo;
_unitOfWork = unitOfWork;
}
示例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;
}
示例12: IndexController
public IndexController(ISysControllerService sysControllerService, ISysUserService sysUserService, IUnitOfWork unitOfWork, IUserInfo userInfo)
{
_sysControllerService = sysControllerService;
_sysUserService = sysUserService;
_unitOfWork = unitOfWork;
_userInfo = userInfo;
}
示例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();
}
}
示例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;
}
示例15: ActivityController
public ActivityController(IActivityService iActivityService,
IUnitOfWork unitOfWork, IUserInfo iUserInfo)
{
_iActivityService = iActivityService;
_unitOfWork = unitOfWork;
_IUserInfo = iUserInfo;
}