本文整理汇总了C#中ILogManager.GetLogger方法的典型用法代码示例。如果您正苦于以下问题:C# ILogManager.GetLogger方法的具体用法?C# ILogManager.GetLogger怎么用?C# ILogManager.GetLogger使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ILogManager
的用法示例。
在下文中一共展示了ILogManager.GetLogger方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SyncFromTraktTask
/// <summary>
///
/// </summary>
/// <param name="logger"></param>
/// <param name="jsonSerializer"></param>
/// <param name="userManager"></param>
/// <param name="userDataManager"> </param>
/// <param name="httpClient"></param>
public SyncFromTraktTask(ILogManager logger, IJsonSerializer jsonSerializer, IUserManager userManager, IUserDataManager userDataManager, IHttpClient httpClient)
{
_userManager = userManager;
_userDataManager = userDataManager;
_logger = logger.GetLogger("Trakt");
_traktApi = new TraktApi(jsonSerializer, _logger, httpClient);
}
示例2: 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);
}
示例3: CommandActionsEntryPoint
public CommandActionsEntryPoint(ICommandManager commandManager, IPresentationManager presentationManager, IPlaybackManager playbackManager, INavigationService navigationService, IScreensaverManager screensaverManager, ILogManager logManager)
{
_commandManager = commandManager;
_defaultCommandActionMap = new DefaultCommandActionMap(presentationManager, playbackManager, navigationService, screensaverManager, logManager);
_logger = logManager.GetLogger(GetType().Name);
}
示例4: 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");
}
示例5: WindowManager
public WindowManager(INavigator navigator, IInternalPlayerWindowManager internalPlayerWindowManager, ILogManager logManager, ITheaterApplicationHost appHost)
{
_navigator = navigator;
_internalPlayerWindowManager = internalPlayerWindowManager;
_appHost = appHost;
_logger = logManager.GetLogger("WindowManager");
}
示例6: MediaResource
/// <summary>
/// Initializes a new instance of the <see cref="MediaResource"/> class.
/// </summary>
/// <param name="logManager">
/// The log manager to use for logging.
/// </param>
public MediaResource(ILogManager logManager = null)
{
if (logManager != null)
{
this.logger = logManager.GetLogger<MediaResource>();
}
}
示例7: TuneInChannel
public TuneInChannel(IHttpClient httpClient, ILogManager logManager)
{
_httpClient = httpClient;
_logger = logManager.GetLogger(GetType().Name);
partnerid = "uD1X52pA";
}
示例8: 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();
}
示例9: ExternalPortForwarding
public ExternalPortForwarding(ILogManager logmanager, IServerApplicationHost appHost, IServerConfigurationManager config, IDeviceDiscovery deviceDiscovery)
{
_logger = logmanager.GetLogger("PortMapper");
_appHost = appHost;
_config = config;
_deviceDiscovery = deviceDiscovery;
}
示例10: InternalDirectShowPlayer
//public URCOMLoader PrivateCom
//{
// get
// {
// return _privateCom;
// }
//}
public InternalDirectShowPlayer(
ILogManager logManager
, MainBaseForm hostForm
//, IPresentationManager presentation
//, ISessionManager sessionManager
, IApplicationPaths appPaths
, IIsoManager isoManager
//, IUserInputManager inputManager
, IZipClient zipClient
, IHttpClient httpClient, IConfigurationManager configurationManager)
{
_logger = logManager.GetLogger("InternalDirectShowPlayer");
_hostForm = hostForm;
//_presentation = presentation;
//_sessionManager = sessionManager;
_httpClient = httpClient;
_config = configurationManager;
_isoManager = isoManager;
//_inputManager = inputManager;
_zipClient = zipClient;
var config = GetConfiguration();
config.VideoConfig.SetDefaults();
config.AudioConfig.SetDefaults();
config.SubtitleConfig.SetDefaults();
config.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(appPaths.ProgramDataPath, _zipClient, logManager, configurationManager);
EnsureMediaFilters(appPaths.ProgramDataPath);
}
示例11: 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();
}
示例12: SoundCloudChannel
public SoundCloudChannel(IHttpClient httpClient, IJsonSerializer jsonSerializer, ILogManager logManager, IEncryptionManager encryption)
{
_httpClient = httpClient;
_logger = logManager.GetLogger(GetType().Name);
_jsonSerializer = jsonSerializer;
_encryption = encryption;
}
示例13: ProviderManager
/// <summary>
/// Initializes a new instance of the <see cref="ProviderManager" /> class.
/// </summary>
/// <param name="httpClient">The HTTP client.</param>
/// <param name="configurationManager">The configuration manager.</param>
/// <param name="directoryWatchers">The directory watchers.</param>
/// <param name="logManager">The log manager.</param>
/// <param name="libraryManager">The library manager.</param>
public ProviderManager(IHttpClient httpClient, IServerConfigurationManager configurationManager, IDirectoryWatchers directoryWatchers, ILogManager logManager, ILibraryManager libraryManager)
{
_logger = logManager.GetLogger("ProviderManager");
_httpClient = httpClient;
ConfigurationManager = configurationManager;
_directoryWatchers = directoryWatchers;
}
示例14: ServerDetailsViewModel
public ServerDetailsViewModel(ILogManager logManager, IApiClient apiClient, ITheaterConfigurationManager config)
{
_apiClient = apiClient;
_config = config;
IsSearchingForServer = true;
HostName = _config.Configuration.ServerHostName ?? "127.0.0.1";
Port = _config.Configuration.ServerApiPort;
Task.Run(async () => {
try {
var address = await new ServerLocator().FindServer(500, CancellationToken.None).ConfigureAwait(false);
var parts = address.ToString().Split(':');
HostName = parts[0];
Port = address.Port;
}
catch (Exception e) {
var log = logManager.GetLogger("SetupWizard.SeverDetails");
log.ErrorException("Failed to discover server", e);
}
finally {
IsSearchingForServer = false;
}
});
}
示例15: RunApplication
private static void RunApplication(ServerApplicationPaths appPaths, ILogManager logManager, StartupOptions options)
{
SystemEvents.SessionEnding += SystemEvents_SessionEnding;
// Allow all https requests
ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(delegate { return true; });
var fileSystem = new CommonFileSystem(logManager.GetLogger("FileSystem"), false, true);
var nativeApp = new NativeApp();
_appHost = new ApplicationHost(appPaths, logManager, options, fileSystem, "MBServer.Mono", nativeApp);
if (options.ContainsOption("-v"))
{
Console.WriteLine(_appHost.ApplicationVersion.ToString());
return;
}
Console.WriteLine("appHost.Init");
var initProgress = new Progress<double>();
var task = _appHost.Init(initProgress);
Task.WaitAll(task);
Console.WriteLine("Running startup tasks");
task = _appHost.RunStartupTasks();
Task.WaitAll(task);
task = ApplicationTaskCompletionSource.Task;
Task.WaitAll(task);
}