コード例 #1
0
ファイル: BasePlugin.cs プロジェクト: yuhonghong66/Logshark
        protected BasePlugin(IPluginRequest pluginRequest)
        {
            this.pluginRequest = pluginRequest;

            MongoDatabase = pluginRequest.MongoDatabase;

            Type pluginType = GetType();

            Log            = PluginLogFactory.GetLogger(pluginType);
            ExtractFactory = new ExtractPersisterFactory(pluginRequest.OutputDirectory, Log, pluginRequest.TempDirectory, pluginRequest.LogDirectory);
        }
コード例 #2
0
 protected BasePlugin()
 {
     RecordsPersisted = new Dictionary <Type, long>();
     Log = PluginLogFactory.GetLogger(this.GetType());
 }