Events not triggering within the Citrix enviroment
Dear Pega,
I'm developing several automations inside the citrix enviroment (by using the Citrix Context). Whenever I test my automations I notice that events are never triggered. When I use the WaitForCreate method for the same component, the result is a true (so the component actually is created).
For further investigation of the problem, I tested the "WaitForEvent", so I could force my execution line to go through the component. When the execution line reaches the WaitForEvent I get the next error:
"The type Openspan.Automation.WaitForEvent in assembly OpenSpan.Automation, Version Proprietary information hidden, Culture=neutral, PublicKey Token= ... is not marked as serializable."
Any idea how I can fix this problem? Developing a solution without any events is not optimal. Thanks in advance.
It sounds like your events are just not handled within the context. It has been a little while since I have worked with a Citrix context, but I believe the events must be handled inside the context.
I am not sure about the WaitForEevent not working, but I would need to see how it is implemented. Make sure it is called within the context though.
Lastly, WaitForCreate is not a wait for the Created event. It is really just a loop checking the Created property until it is True (which may be immediately).