Create a Muliple sessions from Adapter RRS feed

  • Question

  • I am working on CCF 2009.In my project i need to create a multiple sessions from adapter code .
    There is one method called Add session in Desktop.cs through which we can create a new session but we can't call it from Adapter code without creating a new instance of Desktop class.

    Is there any solution for this problem.
    Any kind of help will be appreciated.
    Tuesday, April 14, 2009 5:20 AM

All replies

  • Have you tried using Microsoft.Ccf.Csr.Sessions class as described in reference -
    Thursday, April 16, 2009 8:23 PM
  • Thanks for your reply.
    Yes,we already tried this class and we are using this also.
    But,Actually we need to start a new session from the adapter code(on application button click) which includes all the things like Start applications,Set context,Maintain sessions.
    So all these functionality would not be implemented with this class.
    Monday, April 20, 2009 1:45 PM
  • I guess your application is already a Global application?
    What type of adapter do you have?

    Can you try to implement ISessionController

    public partial class SWAI : HostedControl, ISessionController
      public event SessionControllerEventHandler RequestSessionChange;
      public event SessionControllerEventHandler RequestSessionClose;
      public event SessionOpenControllerEventHandler RequestSessionOpen;
      public SWAI(int appID, string appName, string initString)
       : base(appID, appName, initString)
      public override void SessionChange(bool activate, Guid sessionID)
      public bool SessionClose(Guid sessionID)
       return true;
      public bool SessionOpen(Guid sessionID, Guid applicationSessionID)
       return true;

    Also you need to modify the AddSession method in Desktop.cs



    StartingNewSession = true;

                    SessionManager.AddSession(sessionName, callID, customer);

                    // New line for SWAI

    ApplicationHost.SessionOpen(SessionManager.ActiveSession.SessionID, Guid.Empty);

    Yves Pitsch
    Monday, April 20, 2009 7:40 PM