/// <summary> /// Executing triggeredMethod ExecuteOn_Done_Through_SayHello /// </summary> public static void ExecuteOn_Done_Through_SayHello(XComponent.HelloWorld.UserObject.SayHello sayHello, XComponent.HelloWorld.UserObject.HelloResponse helloResponse, object object_InternalMember, RuntimeContext context, ISayHelloSayHelloOnDoneHelloResponseSenderInterface sender) { helloResponse.Text = "Hello " + sayHello.Name; Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine($"From the owner of the new instance of state machine HelloResponse: message is {helloResponse.Text}"); Console.ForegroundColor = ConsoleColor.White; }
public void SendEvent(StdEnum stateMachineEnum, XComponent.HelloWorld.UserObject.SayHello evt, string privateTopic = null) { var incomingEvent = new IncomingEvent(evt != null ? evt : new XComponent.HelloWorld.UserObject.SayHello(), IncomingEventType.Transition, HeaderFactory.Create(9, (int)stateMachineEnum, -69981087, privateTopic)); PostOnStateMachine(incomingEvent, stateMachineEnum); }
public void SendEvent(XComponent.HelloWorld.UserObject.SayHello evt, string privateTopic = null) { SendEvent(StdEnum.HelloWorldManager, evt != null ? evt : new XComponent.HelloWorld.UserObject.SayHello(), privateTopic); }
public void Send(Context context, XComponent.HelloWorld.UserObject.SayHello evt, string privateTopic = null) { var incomingEvent = new IncomingEvent(evt != null ? evt : new XComponent.HelloWorld.UserObject.SayHello(), IncomingEventType.Transition, HeaderFactory.Create(context, 9, privateTopic)); Agent.Post(_engineAgentsById[context.AgentId], incomingEvent); }
/// <summary> /// Executing triggeredMethod ExecuteOn_Done_Through_SayHello /// </summary> public static void ExecuteOn_Done_Through_SayHello(XComponent.HelloWorld.UserObject.SayHello sayHello, XComponent.HelloWorld.UserObject.HelloResponse helloResponse, object object_InternalMember, Context context, ISayHelloSayHelloOnDoneHelloResponseSenderInterface sender) { helloResponse.Text = "Hello " + sayHello.Name; }
public void SendEvent(StdEnum stdEnum, XComponent.HelloWorld.UserObject.SayHello evt, string privateTopic = null) { _internalCommunicationLayer.SendEvent(stdEnum, evt, privateTopic); }
public void SayHello(Context context, XComponent.HelloWorld.UserObject.SayHello transitionEvent, string privateTopic = null) { _internalCommunicationLayer.Send(context, transitionEvent, privateTopic); }