Change the class names

This commit is contained in:
Namhyeon Go 2024-08-24 21:32:44 +09:00
parent 7f6e21c96e
commit b345d655f1
6 changed files with 10 additions and 10 deletions

View File

@ -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)
}

View File

@ -2,7 +2,7 @@
namespace WelsonJS.Service.Model
{
public class FileRuleMatched
public class FileMatchResult
{
public string Id { get; set; }
public string FilePath { get; set; }

View File

@ -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");

View File

@ -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
{

View File

@ -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">