We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d48731c commit a64d8f7Copy full SHA for a64d8f7
1 file changed
src/InputSources/IInputSource.cs
@@ -0,0 +1,25 @@
1
+// AzimuthConsole/InputSources/IInputSource.cs
2
+using AzimuthConsole.Commands;
3
+
4
+namespace AzimuthConsole.InputSources
5
+{
6
+ public class CommandReceivedEventArgs : EventArgs
7
+ {
8
+ public string Line { get; }
9
+ public ICommandContext Context { get; }
10
11
+ public CommandReceivedEventArgs(string line, ICommandContext context)
12
13
+ Line = line;
14
+ Context = context;
15
+ }
16
17
18
+ public interface IInputSource
19
20
+ string SourceId { get; }
21
+ event EventHandler<CommandReceivedEventArgs>? CommandReceived;
22
+ Task StartAsync();
23
+ Task StopAsync();
24
25
+}
0 commit comments