本文整理汇总了C#中IUserManager类的典型用法代码示例。如果您正苦于以下问题:C# IUserManager类的具体用法?C# IUserManager怎么用?C# IUserManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IUserManager类属于命名空间,在下文中一共展示了IUserManager类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CommonControllerData
public CommonControllerData(ISessionManager sessionManager, IUsersService users, IUserManager userManager, ILanguageService languages)
{
Users = users;
SessionManager = sessionManager;
UserManager = userManager;
Languages = languages;
}
示例2: MainWindow
/// <summary>
/// Initializes a new instance of the <see cref="MainWindow" /> class.
/// </summary>
/// <param name="logManager">The log manager.</param>
/// <param name="appHost">The app host.</param>
/// <param name="configurationManager">The configuration manager.</param>
/// <param name="userManager">The user manager.</param>
/// <param name="libraryManager">The library manager.</param>
/// <param name="jsonSerializer">The json serializer.</param>
/// <param name="displayPreferencesManager">The display preferences manager.</param>
/// <exception cref="System.ArgumentNullException">logger</exception>
public MainWindow(ILogManager logManager, IServerApplicationHost appHost, IServerConfigurationManager configurationManager, IUserManager userManager, ILibraryManager libraryManager, IJsonSerializer jsonSerializer, IDisplayPreferencesRepository displayPreferencesManager)
{
if (logManager == null)
{
throw new ArgumentNullException("logManager");
}
if (appHost == null)
{
throw new ArgumentNullException("appHost");
}
if (configurationManager == null)
{
throw new ArgumentNullException("configurationManager");
}
_logger = logManager.GetLogger("MainWindow");
_appHost = appHost;
_logManager = logManager;
_configurationManager = configurationManager;
_userManager = userManager;
_libraryManager = libraryManager;
_jsonSerializer = jsonSerializer;
_displayPreferencesManager = displayPreferencesManager;
InitializeComponent();
Loaded += MainWindowLoaded;
}
示例3: MoviesService
/// <summary>
/// Initializes a new instance of the <see cref="MoviesService"/> class.
/// </summary>
/// <param name="userManager">The user manager.</param>
/// <param name="userDataRepository">The user data repository.</param>
/// <param name="libraryManager">The library manager.</param>
public MoviesService(IUserManager userManager, IUserDataRepository userDataRepository, ILibraryManager libraryManager, IItemRepository itemRepo)
{
_userManager = userManager;
_userDataRepository = userDataRepository;
_libraryManager = libraryManager;
_itemRepo = itemRepo;
}
示例4: SyncFromTraktTask
/// <summary>
///
/// </summary>
/// <param name="logger"></param>
/// <param name="jsonSerializer"></param>
/// <param name="userManager"></param>
/// <param name="userDataManager"> </param>
/// <param name="httpClient"></param>
/// <param name="appHost"></param>
/// <param name="fileSystem"></param>
public SyncFromTraktTask(ILogManager logger, IJsonSerializer jsonSerializer, IUserManager userManager, IUserDataManager userDataManager, IHttpClient httpClient, IServerApplicationHost appHost, IFileSystem fileSystem)
{
_userManager = userManager;
_userDataManager = userDataManager;
_logger = logger.GetLogger("Trakt");
_traktApi = new TraktApi(jsonSerializer, _logger, httpClient, appHost, userDataManager, fileSystem);
}
示例5: ApplicationManager
public ApplicationManager(IMessengerManager messenger, ITranslationManager translation, IConfigurationManager configuration, IUserManager user,
INotifyIconManager notifyIcon, IEventLogManager logger, IControllerConfigurationManager controller, IThemeManager theme)
{
Messenger = messenger;
Translation = translation;
Configuration = configuration;
User = user;
NotifyIcon = notifyIcon;
Logger = logger;
Controller = controller;
Theme = theme;
Logger.Initialize(Constants.SERVICE_NAME);
Logger.Subscribe(param => Messenger.NotifyColleagues(AppMessages.NEW_LOG_MESSAGE, param.Entry));
string a = Configuration.GetData(ConfOptions.OPTION_ACCENT);
string t = Configuration.GetData(ConfOptions.OPTION_THEME);
Theme.SetTheme(a, t);
Translation.ChangeLanguage(Configuration.GetData(ConfOptions.OPTION_LANGUAGE));
DuplexChannelFactory<ISubscribingService> pipeFactory = new DuplexChannelFactory<ISubscribingService>(new ServiceCommand(Messenger),
new NetNamedPipeBinding(), new EndpointAddress(Constants.PIPE_ADDRESS + Constants.SERVICE_NAME));
Service = pipeFactory.CreateChannel();
Service.Subscribe();
}
示例6: AuthenticationService
public AuthenticationService(IMembershipDataSource dataSource, IUserManager userManager, ISecurityManager securityManager, IAuthenticationCookieService cookieService)
{
this._dataSource = dataSource;
this._userManager = userManager;
this._securityManager = securityManager;
this._cookieService = cookieService;
}
示例7: InstantMixService
public InstantMixService(IUserManager userManager, IDtoService dtoService, IMusicManager musicManager, ILibraryManager libraryManager)
{
_userManager = userManager;
_dtoService = dtoService;
_musicManager = musicManager;
_libraryManager = libraryManager;
}
示例8: MainForm
public MainForm(IUserManager userManager)
{
InitializeComponent();
this.userManager = userManager;
user = userManager.GetCurrentUser();
UpdateUI();
}
示例9: NoticeController
public NoticeController(
IUserManager userMangaer,
INoticeManager noticeManager)
{
_UserMangaer = userMangaer;
_NoticeManager = noticeManager;
}
示例10: SessionWebSocketListener
/// <summary>
/// Initializes a new instance of the <see cref="SessionWebSocketListener" /> class.
/// </summary>
/// <param name="sessionManager">The session manager.</param>
/// <param name="logger">The logger.</param>
/// <param name="libraryManager">The library manager.</param>
/// <param name="userManager">The user manager.</param>
public SessionWebSocketListener(ISessionManager sessionManager, ILogger logger, ILibraryManager libraryManager, IUserManager userManager)
{
_sessionManager = sessionManager;
_logger = logger;
_libraryManager = libraryManager;
_userManager = userManager;
}
示例11: PlaylistController
public PlaylistController(IPlaylistManager playlistManager, IUserManager userManager, ITrackProvider trackProvider, IAlbumArtProvider albumArtProvider)
{
this.playlistManager = playlistManager;
this.userManager = userManager;
this.trackProvider = trackProvider;
this.albumArtProvider = albumArtProvider;
}
示例12: ImportLastfmData
public ImportLastfmData(IHttpClient httpClient, IJsonSerializer jsonSerializer, IUserManager userManager, IUserDataManager userDataManager)
{
_userManager = userManager;
_userDataManager = userDataManager;
_apiClient = new LastfmApiClient(httpClient, jsonSerializer);
}
示例13: UserDataChangeNotifier
public UserDataChangeNotifier(IUserDataManager userDataManager, ISessionManager sessionManager, ILogger logger, IUserManager userManager)
{
_userDataManager = userDataManager;
_sessionManager = sessionManager;
_logger = logger;
_userManager = userManager;
}
示例14: TVSeriesManager
public TVSeriesManager(IUserManager userManager, IUserDataManager userDataManager, ILibraryManager libraryManager, IServerConfigurationManager config)
{
_userManager = userManager;
_userDataManager = userDataManager;
_libraryManager = libraryManager;
_config = config;
}
示例15: ArticleController
public ArticleController(IArticleManager articleManager, ICommentManager commentManager, IUserManager userManager, ILogger.ILogger logger)
{
this.articleManager = articleManager;
this.commentManager = commentManager;
this.userManager = userManager;
this.logger = logger;
}