File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
Chickensoft.LogicBlocks/src Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,23 @@ namespace Chickensoft.LogicBlocks;
6
6
/// <typeparam name="TState">Logic block state type.</typeparam>
7
7
public interface ILogicBlockBinding < TState >
8
8
where TState : StateLogic < TState > {
9
- internal void MonitorInput < TInputType > ( in TInputType input )
10
- where TInputType : struct ;
9
+ /// <summary>Called when the logic block receives an input.</summary>
10
+ /// <param name="input">Input received.</param>
11
+ /// <typeparam name="TInput">Type of the input.</typeparam>
12
+ internal void MonitorInput < TInput > ( in TInput input )
13
+ where TInput : struct ;
14
+
15
+ /// <summary>Called when the logic block changes state.</summary>
16
+ /// <param name="state">New state.</param>
11
17
internal void MonitorState ( TState state ) ;
18
+
19
+ /// <summary>Called when the logic block produces an output.</summary>
20
+ /// <param name="output">Output received.</param>
21
+ /// <typeparam name="TOutput">Type of the output.</typeparam>
12
22
internal void MonitorOutput < TOutput > ( in TOutput output )
13
23
where TOutput : struct ;
24
+
25
+ /// <summary>Called when the logic block encounters an exception.</summary>
26
+ /// <param name="exception">Exception encountered.</param>
14
27
internal void MonitorException ( Exception exception ) ;
15
28
}
You can’t perform that action at this time.
0 commit comments