Class CommonBaseCore
Inheritance
System.Object
CommonBaseCore
Assembly: MediaBrowser.Controller.dll
public abstract class CommonBaseCore
Constructors
Declaration
protected CommonBaseCore(IServiceRoot serviceRoot, ILogger logger)
Parameters
Declaration
protected CommonBaseCore(IServiceRoot serviceRoot, string logName = null)
Parameters
Type |
Name |
Description |
IServiceRoot |
serviceRoot |
|
System.String |
logName |
|
Properties
Declaration
protected ILocalizationManager LocalizationManager { get; }
Property Value
Declaration
public IServiceRoot ServiceRoot { get; }
Property Value
Methods
Declaration
protected void DebugLog(string message, object p1 = null, object p2 = null, object p3 = null, object p4 = null, object p5 = null, object p6 = null, string callerMemberName = null)
Parameters
Type |
Name |
Description |
System.String |
message |
|
System.Object |
p1 |
|
System.Object |
p2 |
|
System.Object |
p3 |
|
System.Object |
p4 |
|
System.Object |
p5 |
|
System.Object |
p6 |
|
System.String |
callerMemberName |
|
Declaration
protected void DebugLogEnter(string callerMemberName = null)
Parameters
Type |
Name |
Description |
System.String |
callerMemberName |
|
Declaration
protected void DebugLogExit(string callerMemberName = null)
Parameters
Type |
Name |
Description |
System.String |
callerMemberName |
|
Declaration
protected virtual EmbyUserException GetEx(string messageResourceKey, object p1 = null, object p2 = null, object p3 = null, object p4 = null, object p5 = null, object p6 = null, string callerMemberName = null)
Parameters
Type |
Name |
Description |
System.String |
messageResourceKey |
|
System.Object |
p1 |
|
System.Object |
p2 |
|
System.Object |
p3 |
|
System.Object |
p4 |
|
System.Object |
p5 |
|
System.Object |
p6 |
|
System.String |
callerMemberName |
|
Returns
Declaration
protected virtual string GetInstanceInfo()
Returns
Type |
Description |
System.String |
|
Declaration
protected string GetLocalizedString(string resourceKey)
Parameters
Type |
Name |
Description |
System.String |
resourceKey |
|
Returns
Type |
Description |
System.String |
|
Declaration
protected ILogger GetLogger()
Returns
Declaration
protected T GetService<T>()
where T : class
Returns
Type Parameters
Declaration
protected void InfoLog(string message, object p1 = null, object p2 = null, object p3 = null, object p4 = null, object p5 = null, object p6 = null, string callerMemberName = null)
Parameters
Type |
Name |
Description |
System.String |
message |
|
System.Object |
p1 |
|
System.Object |
p2 |
|
System.Object |
p3 |
|
System.Object |
p4 |
|
System.Object |
p5 |
|
System.Object |
p6 |
|
System.String |
callerMemberName |
|
Declaration
protected void LogException(Exception ex, string message = null, object p1 = null, object p2 = null, object p3 = null, object p4 = null, object p5 = null, object p6 = null, string callerMemberName = null)
Parameters
Type |
Name |
Description |
System.Exception |
ex |
|
System.String |
message |
|
System.Object |
p1 |
|
System.Object |
p2 |
|
System.Object |
p3 |
|
System.Object |
p4 |
|
System.Object |
p5 |
|
System.Object |
p6 |
|
System.String |
callerMemberName |
|
Declaration
protected void LogWarning(string message, object p1 = null, object p2 = null, object p3 = null, object p4 = null, object p5 = null, object p6 = null, string callerMemberName = null)
Parameters
Type |
Name |
Description |
System.String |
message |
|
System.Object |
p1 |
|
System.Object |
p2 |
|
System.Object |
p3 |
|
System.Object |
p4 |
|
System.Object |
p5 |
|
System.Object |
p6 |
|
System.String |
callerMemberName |
|
Extension Methods