Genesys CTI User Forum > Genesys-related Development

IWS Custumisation

<< < (2/2)

Kubig:
As I wrote, samples are public on docs.genesyslab.com. There you can find many hints for developing the WDE plug-ins and modules. If you will have some additional question, feel free to ask here or create new topic

genesysBeginner:
Thnaks  :).
I just need to know if the code posted before in this conversation is correct or not so  try another example to find the solution ?

cavagnaro:
If it doesn't work for you then needs some correction. As Kubig says, check samples. Read docs.

PeteHoyle:
Hi,

You've got the right idea, it is just the timing of when you add your interactionManager_InteractionEvent event handler



You need a ViewEventManger, then in the class constructor add this

[code]viewEventManager.Subscribe(iWSStartupEventHandler);[/code]

Then the handler should look like this:

[code]void iWSStartupEventHandler(object eventObject)
        {
            try
            {
                string eventMessage = eventObject as string;
                if (eventMessage != null)
                {
                    switch (eventMessage)
                    {
                        case "Loggin":
                            log.Info(log_prefix + "Registering EventHandler");
                            interactionManager.InteractionEvent += new EventHandler<EventArgs<Genesyslab.Desktop.Modules.Core.Model.Interactions.IInteraction>>(interactionManager_InteractionEvent);
                            log.Info(log_prefix + "Registered EventHandler");
                            break;
                        case "Logout":
                            log.Info(log_prefix + "UnRegistering EventHandler");
                            interactionManager.InteractionEvent -= new EventHandler<EventArgs<Genesyslab.Desktop.Modules.Core.Model.Interactions.IInteraction>>(interactionManager_InteractionEvent);
                            log.Info(log_prefix + "UnRegistered EventHandler");
                            break;
                    }
                }
            }
            catch (Exception ex)
            {
                log.Error(log_prefix + " Error with Logon Listener" + ex.Message, ex);
            }
        }[/code]

Navigation

[0] Message Index

[*] Previous page

Go to full version