-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathPlugin.cs
More file actions
25 lines (21 loc) · 794 Bytes
/
Plugin.cs
File metadata and controls
25 lines (21 loc) · 794 Bytes
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
using System.IO;
using FieldDataPluginFramework;
using FieldDataPluginFramework.Context;
using FieldDataPluginFramework.Results;
namespace MultiFile
{
public class Plugin : IFieldDataPlugin
{
public ParseFileResult ParseFile(Stream fileStream, IFieldDataResultsAppender fieldDataResultsAppender, ILog logger)
{
var parser = new Parser(logger, fieldDataResultsAppender);
return parser.Parse(fileStream);
}
public ParseFileResult ParseFile(Stream fileStream, LocationInfo targetLocation,
IFieldDataResultsAppender fieldDataResultsAppender, ILog logger)
{
var parser = new Parser(logger, fieldDataResultsAppender);
return parser.Parse(fileStream, targetLocation);
}
}
}