We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bb2025 commit 9990c4eCopy full SHA for 9990c4e
1 file changed
src/Contexts/InitContext.cs
@@ -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