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


C# IUserManager类代码示例

本文整理汇总了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;
 }
开发者ID:Producenta,项目名称:Forum-System,代码行数:7,代码来源:CommonControllerData.cs

示例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;
        }
开发者ID:Jon-theHTPC,项目名称:MediaBrowser,代码行数:39,代码来源:MainWindow.xaml.cs

示例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;
 }
开发者ID:JasoonJ,项目名称:MediaBrowser,代码行数:13,代码来源:MoviesService.cs

示例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);
 }
开发者ID:ryu4000,项目名称:MediaBrowser.Plugins,代码行数:17,代码来源:SyncFromTraktTask.cs

示例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();
        }
开发者ID:kenzya,项目名称:ds4ui,代码行数:26,代码来源:ApplicationManager.cs

示例6: AuthenticationService

 public AuthenticationService(IMembershipDataSource dataSource, IUserManager userManager, ISecurityManager securityManager, IAuthenticationCookieService cookieService)
 {
     this._dataSource = dataSource;
     this._userManager = userManager;
     this._securityManager = securityManager;
     this._cookieService = cookieService;
 }
开发者ID:StrixIT,项目名称:StrixIT.Platform.Modules.Membership,代码行数:7,代码来源:AuthenticationService.cs

示例7: InstantMixService

 public InstantMixService(IUserManager userManager, IDtoService dtoService, IMusicManager musicManager, ILibraryManager libraryManager)
 {
     _userManager = userManager;
     _dtoService = dtoService;
     _musicManager = musicManager;
     _libraryManager = libraryManager;
 }
开发者ID:softworkz,项目名称:Emby,代码行数:7,代码来源:InstantMixService.cs

示例8: MainForm

 public MainForm(IUserManager userManager)
 {
     InitializeComponent();
     this.userManager = userManager;
     user = userManager.GetCurrentUser();
     UpdateUI();
 }
开发者ID:jaguire,项目名称:ChronoBank,代码行数:7,代码来源:MainForm.cs

示例9: NoticeController

 public NoticeController(
     IUserManager userMangaer,
     INoticeManager noticeManager)
 {
     _UserMangaer = userMangaer;
     _NoticeManager = noticeManager;
 }
开发者ID:yeshusuper,项目名称:BHOffice,代码行数:7,代码来源:NoticeController.cs

示例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;
 }
开发者ID:snap608,项目名称:MediaBrowser,代码行数:14,代码来源:SessionWebSocketListener.cs

示例11: PlaylistController

 public PlaylistController(IPlaylistManager playlistManager, IUserManager userManager, ITrackProvider trackProvider, IAlbumArtProvider albumArtProvider)
 {
     this.playlistManager = playlistManager;
     this.userManager = userManager;
     this.trackProvider = trackProvider;
     this.albumArtProvider = albumArtProvider;
 }
开发者ID:BeatBuddy,项目名称:beatbuddy_webapp,代码行数:7,代码来源:PlaylistController.cs

示例12: ImportLastfmData

 public ImportLastfmData(IHttpClient httpClient, IJsonSerializer jsonSerializer, IUserManager userManager, IUserDataManager userDataManager)
 {
     _userManager     = userManager;
     _userDataManager = userDataManager;
     
     _apiClient = new LastfmApiClient(httpClient, jsonSerializer);
 }
开发者ID:jvanhie,项目名称:Lastfm-Scrobbler,代码行数:7,代码来源:ImportLastfmData.cs

示例13: UserDataChangeNotifier

 public UserDataChangeNotifier(IUserDataManager userDataManager, ISessionManager sessionManager, ILogger logger, IUserManager userManager)
 {
     _userDataManager = userDataManager;
     _sessionManager = sessionManager;
     _logger = logger;
     _userManager = userManager;
 }
开发者ID:rezafouladian,项目名称:Emby,代码行数:7,代码来源:UserDataChangeNotifier.cs

示例14: TVSeriesManager

 public TVSeriesManager(IUserManager userManager, IUserDataManager userDataManager, ILibraryManager libraryManager, IServerConfigurationManager config)
 {
     _userManager = userManager;
     _userDataManager = userDataManager;
     _libraryManager = libraryManager;
     _config = config;
 }
开发者ID:7illusions,项目名称:Emby,代码行数:7,代码来源:TVSeriesManager.cs

示例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;
 }
开发者ID:pabloperfalc,项目名称:TallerDiseno,代码行数:7,代码来源:ArticleController.cs


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