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