mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 15:31:42 +00:00
Change the class names
This commit is contained in:
parent
7f6e21c96e
commit
b345d655f1
|
@ -171,7 +171,7 @@ namespace WelsonJS.Service
|
|||
parent.Log($"YARA rule matched: {ruleName}, {filePath}, Offset {x.Offset}");
|
||||
parent.DispatchServiceEvent("fileRuleMatched", new string[] { ruleName, filePath, x.Offset.ToString() });
|
||||
|
||||
IndexFileRuleMatched(new FileRuleMatched
|
||||
IndexFileRuleMatched(new FileMatchResult
|
||||
{
|
||||
FilePath = filePath,
|
||||
Offset = x.Offset,
|
||||
|
@ -189,7 +189,7 @@ namespace WelsonJS.Service
|
|||
}
|
||||
}
|
||||
|
||||
private void IndexFileRuleMatched(FileRuleMatched match)
|
||||
private void IndexFileRuleMatched(FileMatchResult match)
|
||||
{
|
||||
// todo (save result to the search engine)
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace WelsonJS.Service.Model
|
||||
{
|
||||
public class FileRuleMatched
|
||||
public class FileMatchResult
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public string FilePath { get; set; }
|
|
@ -10,7 +10,7 @@ using System.Text;
|
|||
using System.Windows.Forms;
|
||||
using WelsonJS.Service;
|
||||
|
||||
public class ScreenMatching
|
||||
public class ScreenMatch
|
||||
{
|
||||
// User32.dll API 함수 선언
|
||||
[DllImport("user32.dll")]
|
||||
|
@ -60,7 +60,7 @@ public class ScreenMatching
|
|||
private string mode;
|
||||
private List<string> _params = new List<string>();
|
||||
|
||||
public ScreenMatching(ServiceBase parent, string workingDirectory)
|
||||
public ScreenMatch(ServiceBase parent, string workingDirectory)
|
||||
{
|
||||
this.parent = (ServiceMain)parent;
|
||||
templateDirectoryPath = Path.Combine(workingDirectory, "app/assets/img/_templates");
|
|
@ -49,7 +49,7 @@ namespace WelsonJS.Service
|
|||
private bool disabledScreenTime = false;
|
||||
private bool disabledFileMonitor = false;
|
||||
private bool disabledMessageReceiver = false;
|
||||
private ScreenMatching screenMatcher;
|
||||
private ScreenMatch screenMatcher;
|
||||
private FileEventMonitor fileEventMonitor;
|
||||
private IniFile settingsFileHandler;
|
||||
|
||||
|
@ -270,7 +270,7 @@ namespace WelsonJS.Service
|
|||
// set screen timer
|
||||
if (!disabledScreenTime)
|
||||
{
|
||||
screenMatcher = new ScreenMatching(this, workingDirectory);
|
||||
screenMatcher = new ScreenMatch(this, workingDirectory);
|
||||
|
||||
Timer screenTimer = new Timer
|
||||
{
|
||||
|
|
|
@ -156,7 +156,7 @@
|
|||
<ItemGroup>
|
||||
<Compile Include="FileEventMonitor.cs" />
|
||||
<Compile Include="MessageReceiver.cs" />
|
||||
<Compile Include="Model\FileRuleMatched.cs" />
|
||||
<Compile Include="Model\FileMatchResult.cs" />
|
||||
<Compile Include="ServiceMain.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
|
@ -171,8 +171,8 @@
|
|||
<DependentUpon>ProjectInstaller.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="ScreenMatching.cs" />
|
||||
<Compile Include="ScreenMatchResult.cs" />
|
||||
<Compile Include="ScreenMatch.cs" />
|
||||
<Compile Include="Model\ScreenMatchResult.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<COMReference Include="MSScriptControl">
|
||||
|
|
Loading…
Reference in New Issue
Block a user