Example #1
0
 /// <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;
 }
Example #2
0
        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);
        }
Example #3
0
 public void SendEvent(XComponent.HelloWorld.UserObject.SayHello evt, string privateTopic = null)
 {
     SendEvent(StdEnum.HelloWorldManager, evt != null ? evt : new XComponent.HelloWorld.UserObject.SayHello(), privateTopic);
 }
Example #4
0
        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);
        }
Example #5
0
 /// <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;
 }
Example #6
0
 public void SendEvent(StdEnum stdEnum, XComponent.HelloWorld.UserObject.SayHello evt, string privateTopic = null)
 {
     _internalCommunicationLayer.SendEvent(stdEnum, evt, privateTopic);
 }
Example #7
0
 public void SayHello(Context context, XComponent.HelloWorld.UserObject.SayHello transitionEvent, string privateTopic = null)
 {
     _internalCommunicationLayer.Send(context, transitionEvent, privateTopic);
 }