forked from dotnetcore/SmartCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAbstractPlugin.cs
More file actions
34 lines (31 loc) · 1.12 KB
/
Copy pathAbstractPlugin.cs
File metadata and controls
34 lines (31 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using Microsoft.Extensions.Logging;
using SmartCode.Configuration;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
namespace SmartCode
{
[Obsolete]
public abstract class AbstractPlugin : IPlugin
{
public const string NAME_KEY = "Name";
public const string LOGGER_KEY = "Logger";
public const string PROJECT_CONFIG_KEY = "Project";
public const string PLUGIN_MANAGER_KEY = "PluginManager";
public const string LOGGER_FACTORY_KEY = "LoggerFactory";
public bool Initialized { get; protected set; } = false;
public virtual string Name { get; protected set; }
public ILogger Logger { get; protected set; }
public ILoggerFactory LoggerFactory { get; protected set; }
public Project Project { get; protected set; }
public IPluginManager PluginManager { get; protected set; }
public virtual void Initialize(IDictionary<string, object> parameters)
{
if (parameters != null)
{
}
this.Initialized = true;
}
}
}