コード例 #1
0
 public EventHandlerContext(byte[] initContext, int initSizeOfContext) // this will be changed with an interface for contexts
 {
     command          = EventHandlerFunctions.InvalidCommand;
     coreCommand      = CoreKnownFunctions.InvalidCommand;
     subModuleCommand = SubModuleFunctions.InvalidCommand;
     contextHandler   = new IContext(initContext, initSizeOfContext);
 }
コード例 #2
0
 public EventHandlerContext()
 {
     command          = EventHandlerFunctions.InvalidCommand;
     coreCommand      = CoreKnownFunctions.InvalidCommand;
     subModuleCommand = SubModuleFunctions.InvalidCommand;
     contextHandler   = null;
 }
コード例 #3
0
 private bool RequestCommand(CoreKnownFunctions command, byte[] context, int sizeOfContext)  // Sends requests to Core and then process them as we want
 {
     // invoke commands directly from the core of the program itself
     // directly send command to core, where the context should be validated!!!!
     // we could return actually a command, not just asking, but its better like this because we can control the state of the module in case of malfunctioning after our call
     // also, if we return the command, we can't use the context asked
     return(true);
 }