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); }
public EventHandlerContext() { command = EventHandlerFunctions.InvalidCommand; coreCommand = CoreKnownFunctions.InvalidCommand; subModuleCommand = SubModuleFunctions.InvalidCommand; contextHandler = null; }
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); }