本文整理汇总了C#中ISessionManager类的典型用法代码示例。如果您正苦于以下问题:C# ISessionManager类的具体用法?C# ISessionManager怎么用?C# ISessionManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ISessionManager类属于命名空间,在下文中一共展示了ISessionManager类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: DownloadsModule
/// <summary>
/// DownloadsModule constructor.
/// </summary>
/// <param name="fileService">FileService dependency.</param>
/// <param name="sessionManager">NHibernate session manager dependency.</param>
public DownloadsModule(IFileService fileService,IFileResourceService fileResourceService, ISessionManager sessionManager, IContentItemService<FileResource> contentItemService)
{
this._sessionManager = sessionManager;
this._fileService = fileService;
this._contentItemService = contentItemService;
this._fileResourceService = fileResourceService;
}
开发者ID:martijnboland,项目名称:Cuyahoga-Constructor,代码行数:12,代码来源:DownloadsModule.cs
示例2: CreateDatabase
private static void CreateDatabase(string databaseName, SQLConnectionDetails sqlConnectionDetails, ISessionManager sessionManager)
{
DM.SessionManager = sessionManager;
var database = new Database(databaseName, sqlConnectionDetails, sessionManager, DM.GetAllTables());
DM.Database = SM.Server.AddDatabase(database);
}
开发者ID:RossHartmann,项目名称:Biological-AI,代码行数:7,代码来源:DM.cs
示例3: UserService
public UserService(IUserRepository userRepository, ISessionManager sesstionService, IRoleService roleService, ISettingService settingService, ISessionManager sessionManager)
{
_userRepository = userRepository;
_roleService = roleService;
_sessionManager = sessionManager;
_settingService = settingService;
}
开发者ID:sleepandeat,项目名称:Program,代码行数:7,代码来源:UserService.cs
示例4: JourneyRepository
public JourneyRepository(ISessionManager sessionManager, IShips ships)
: base(sessionManager)
{
if (ships == null) throw new ArgumentNullException("ships");
_ships = ships;
}
开发者ID:ardliath,项目名称:BigSpace,代码行数:7,代码来源:JourneyRepository.cs
示例5: Initialize
public void Initialize(ISessionManager sessionManager) //, IPersistenceConfigurer persistenceConfigurer)
{
sessionManager.Init(this);
this.sessionManager = sessionManager;
currentConfiguration = new Configuration();
currentConfiguration.Configure();
var fc = FHN.Fluently.Configure(currentConfiguration)
//.Database(persistenceConfigurer)
//.Diagnostics(x=>x.OutputToConsole())
.Mappings(x=> {
foreach(var prov in MappingProviders) {
foreach(var mapping in prov.FluentMappings) {
x.FluentMappings.Add(mapping);
}
}
x.FluentMappings.Conventions.Add(MappingConventions.ToArray());
});
currentConfiguration = fc.BuildConfiguration();
InitializeValidation();
InitListeners();
currentConfiguration.SetProperty("proxyfactory.factory_class", typeof(ProxyFactoryFactory).AssemblyQualifiedName);
sessionFactory = currentConfiguration.BuildSessionFactory();
}
开发者ID:ikutsin,项目名称:BinaryAnalysis.Core,代码行数:29,代码来源:ModuledDbContext.cs
示例6: DlnaEntryPoint
public DlnaEntryPoint(IServerConfigurationManager config,
ILogManager logManager,
IServerApplicationHost appHost,
INetworkManager network,
ISessionManager sessionManager,
IHttpClient httpClient,
ILibraryManager libraryManager,
IUserManager userManager,
IDlnaManager dlnaManager,
IImageProcessor imageProcessor,
IUserDataManager userDataManager,
ILocalizationManager localization,
IMediaSourceManager mediaSourceManager,
ISsdpHandler ssdpHandler)
{
_config = config;
_appHost = appHost;
_network = network;
_sessionManager = sessionManager;
_httpClient = httpClient;
_libraryManager = libraryManager;
_userManager = userManager;
_dlnaManager = dlnaManager;
_imageProcessor = imageProcessor;
_userDataManager = userDataManager;
_localization = localization;
_mediaSourceManager = mediaSourceManager;
_ssdpHandler = (SsdpHandler)ssdpHandler;
_logger = logManager.GetLogger("Dlna");
}
开发者ID:jrags56,项目名称:MediaBrowser,代码行数:30,代码来源:DlnaEntryPoint.cs
示例7: InternalDirectShowPlayer
public InternalDirectShowPlayer(ILogManager logManager, IHiddenWindow hiddenWindow, IPresentationManager presentation, ISessionManager sessionManager, IPlaybackManager playbackManager, ITheaterConfigurationManager config, IIsoManager isoManager, IUserInputManager inputManager, IZipClient zipClient, IHttpClient httpClient, IConnectionManager connectionManager)
{
_logger = logManager.GetLogger("InternalDirectShowPlayer");
_hiddenWindow = hiddenWindow;
_presentation = presentation;
_sessionManager = sessionManager;
_httpClient = httpClient;
_connectionManager = connectionManager;
_playbackManager = playbackManager;
_config = config;
_isoManager = isoManager;
_inputManager = inputManager;
_zipClient = zipClient;
_config.Configuration.InternalPlayerConfiguration.VideoConfig.SetDefaults();
_config.Configuration.InternalPlayerConfiguration.AudioConfig.SetDefaults();
_config.Configuration.InternalPlayerConfiguration.SubtitleConfig.SetDefaults();
_config.Configuration.InternalPlayerConfiguration.COMConfig.SetDefaults();
//use a static object so we keep the libraries in the same place. Doesn't usually matter, but the EVR Presenter does some COM hooking that has problems if we change the lib address.
//if (_privateCom == null)
// _privateCom = new URCOMLoader(_config, _zipClient);
URCOMLoader.Instance.Initialize(_config, _zipClient, logManager);
EnsureMediaFilters();
}
开发者ID:chandum2,项目名称:Emby.Theater,代码行数:26,代码来源:InternalDirectShowPlayer.cs
示例8: AutomaticRestartEntryPoint
public AutomaticRestartEntryPoint(IServerApplicationHost appHost, ILogger logger, ITaskManager iTaskManager, ISessionManager sessionManager)
{
_appHost = appHost;
_logger = logger;
_iTaskManager = iTaskManager;
_sessionManager = sessionManager;
}
开发者ID:jscorrea,项目名称:MediaBrowser,代码行数:7,代码来源:AutomaticRestartEntryPoint.cs
示例9: UserDataChangeNotifier
public UserDataChangeNotifier(IUserDataManager userDataManager, ISessionManager sessionManager, IDtoService dtoService, ILogger logger)
{
_userDataManager = userDataManager;
_sessionManager = sessionManager;
_dtoService = dtoService;
_logger = logger;
}
开发者ID:jscorrea,项目名称:MediaBrowser,代码行数:7,代码来源:UserDataChangeNotifier.cs
示例10: PageContentViewModel
public PageContentViewModel(INavigationService navigationService, ISessionManager sessionManager, IPlaybackManager playbackManager, ILogger logger, ITheaterApplicationHost appHost, IApiClient apiClient, IPresentationManager presentationManager, IServerEvents serverEvents)
{
NavigationService = navigationService;
SessionManager = sessionManager;
PlaybackManager = playbackManager;
Logger = logger;
AppHost = appHost;
ApiClient = apiClient;
PresentationManager = presentationManager;
ServerEvents = serverEvents;
MasterCommands = new MasterCommandsViewModel(navigationService, sessionManager, presentationManager, apiClient, logger, appHost, serverEvents);
NavigationService.Navigated += NavigationServiceNavigated;
SessionManager.UserLoggedIn += SessionManagerUserLoggedIn;
SessionManager.UserLoggedOut += SessionManagerUserLoggedOut;
PlaybackManager.PlaybackStarted += PlaybackManager_PlaybackStarted;
PlaybackManager.PlaybackCompleted += PlaybackManager_PlaybackCompleted;
_dispatcher = Dispatcher.CurrentDispatcher;
_clockTimer = new Timer(ClockTimerCallback, null, 0, 10000);
IsLoggedIn = SessionManager.CurrentUser != null;
var page = NavigationService.CurrentPage;
IsOnHomePage = page is IHomePage;
IsOnFullscreenVideo = page is IFullscreenVideoPage;
}
开发者ID:Rainking720,项目名称:MediaBrowser.Theater,代码行数:28,代码来源:PageContentViewModel.cs
示例11: 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
示例12: FavoritesViewModel
public FavoritesViewModel(IPresentationManager presentation, IImageManager imageManager, IApiClient apiClient, ISessionManager session, INavigationService nav, IPlaybackManager playback, ILogger logger, double tileWidth, double tileHeight, IServerEvents serverEvents)
: base(presentation, apiClient)
{
_sessionManager = session;
_playbackManager = playback;
_imageManager = imageManager;
_navService = nav;
_logger = logger;
_serverEvents = serverEvents;
TileWidth = tileWidth;
TileHeight = tileHeight;
var spotlightTileWidth = TileWidth * 2 + TilePadding;
var spotlightTileHeight = spotlightTileWidth * 9 / 16;
SpotlightViewModel = new ImageViewerViewModel(_imageManager, new List<ImageViewerImage>())
{
Height = spotlightTileHeight,
Width = spotlightTileWidth,
CustomCommandAction = i => _navService.NavigateToItem(i.Item, ViewType.Tv)
};
LoadViewModels();
NavigateToFavoriteMoviesCommand = new RelayCommand(o => NavigateToFavorites("Movie"));
}
开发者ID:jfrankelp,项目名称:MediaBrowser.Theater,代码行数:27,代码来源:FavoritesViewModel.cs
示例13: SessionWebSocketListener
/// <summary>
/// Initializes a new instance of the <see cref="SessionWebSocketListener" /> class.
/// </summary>
/// <param name="sessionManager">The session manager.</param>
/// <param name="logManager">The log manager.</param>
/// <param name="dtoService">The dto service.</param>
public SessionWebSocketListener(ISessionManager sessionManager, ILogManager logManager, IDtoService dtoService, IServerApplicationHost appHost)
{
_sessionManager = sessionManager;
_logger = logManager.GetLogger(GetType().Name);
_dtoService = dtoService;
_appHost = appHost;
}
开发者ID:Rycius,项目名称:MediaBrowser,代码行数:13,代码来源:SessionWebSocketListener.cs
示例14: ScreensaverManager
public ScreensaverManager(IUserInputManager userInput, IPresentationManager presentationManager, IPlaybackManager playback, ISessionManager session, IApiClient apiClient, ITheaterConfigurationManager theaterConfigurationManager, ILogManager logManager, IServerEvents serverEvents)
{
_userInput = userInput;
_presentationManager = presentationManager;
_playback = playback;
_session = session;
_apiClient = apiClient;
_theaterConfigurationManager = theaterConfigurationManager;
_logger = logManager.GetLogger(GetType().Name);
_serverEvents = serverEvents;
_session.UserLoggedIn += session_UserChanged;
_session.UserLoggedOut += session_UserChanged;
_playback.PlaybackCompleted += _playback_PlaybackCompleted;
_playback.PlaybackStarted += _playback_PlaybackStarted;
_serverEvents.BrowseCommand += _serverEvents_BrowseCommand;
_serverEvents.MessageCommand += _serverEvents_MessageCommand;
_serverEvents.PlayCommand += _serverEvents_PlayCommand;
_serverEvents.PlaystateCommand += _serverEvents_PlaystateCommand;
_serverEvents.GeneralCommand += _serverEvents_GeneralCommand;
SystemEvents.PowerModeChanged += SystemEvents_PowerModeChanged;
StartTimer();
}
开发者ID:Rainking720,项目名称:MediaBrowser.Theater,代码行数:27,代码来源:ScreensaverManager.cs
示例15: GetISessionManager
public ISessionManager GetISessionManager()
{
if (_sessionManager == null)
_sessionManager = new SessionManager(GetISessionRepository());
return _sessionManager;
}
开发者ID:jrowies,项目名称:dsmaddin,代码行数:7,代码来源:Container.cs
示例16: UserListViewModel
public UserListViewModel(IPresentationManager presentationManager, IImageManager imageManager, ISessionManager sessionManager, IApiClient apiClient)
{
ApiClient = apiClient;
SessionManager = sessionManager;
ImageManager = imageManager;
PresentationManager = presentationManager;
}
开发者ID:chandum2,项目名称:Emby.Theater,代码行数:7,代码来源:UserListViewModel.cs
示例17: UsuariosPresenter
public UsuariosPresenter(IMainPresenter mainPresenter, ISessionManager sessionManager)
{
this.mainPresenter = mainPresenter;
this.sessionManager = sessionManager;
view = CreateView();
}
开发者ID:ricardoborges,项目名称:OpenSGA,代码行数:7,代码来源:UsuariosPresenter.cs
示例18: RecordingNotifier
public RecordingNotifier(ISessionManager sessionManager, IUserManager userManager, ILogger logger, ILiveTvManager liveTvManager)
{
_sessionManager = sessionManager;
_userManager = userManager;
_logger = logger;
_liveTvManager = liveTvManager;
}
开发者ID:softworkz,项目名称:Emby,代码行数:7,代码来源:RecordingNotifier.cs
示例19: 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
示例20: 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
注:本文中的ISessionManager类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论