Skip to content

Commit 9990c4e

Browse files
Create InitContext.cs
1 parent 7bb2025 commit 9990c4e

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

src/Contexts/InitContext.cs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// AzimuthConsole/Contexts/InitContext.cs
2+
using AzimuthConsole.Commands;
3+
4+
namespace AzimuthConsole.Contexts
5+
{
6+
public class InitContext : ICommandContext
7+
{
8+
private readonly Action<string> _log;
9+
10+
public string SourceId => "init";
11+
12+
public InitContext(Action<string> log)
13+
{
14+
_log = log;
15+
}
16+
17+
public Task SendResponseAsync(string cmdId, CommandResult result)
18+
{
19+
_log($"[init] {cmdId},{result}");
20+
return Task.CompletedTask;
21+
}
22+
}
23+
}

0 commit comments

Comments
 (0)