コード例 #1
0
        public void InitializePSDKApplicationBlocks()
        {
            protocolManagementService = new ProtocolManagementService();

            isConfiguration = new InteractionServerConfiguration(ISERVER_IDENTIFIER);

            try
            {
                isConfiguration.Uri = new Uri(ISERVER_URI);
            }
            catch (Exception ex)
            {
                LogException(ex);
            }
            isConfiguration.ClientName = CLIENT_NAME;
            isConfiguration.ClientType = InteractionClient.AgentApplication;

            protocolManagementService.Register(isConfiguration);

            protocolManagementService.ProtocolOpened += new EventHandler <ProtocolEventArgs>(this.OnProtocolOpened);
            protocolManagementService.ProtocolClosed += new EventHandler <ProtocolEventArgs>(this.OnProtocolClosed);

            eventBrokerService = new EventBrokerService(protocolManagementService.Receiver);
            eventBrokerService.Register(
                IServerEventsHandler,
                new MessageFilter(protocolManagementService[ISERVER_IDENTIFIER].ProtocolId));

            // Activate event broker service
            eventBrokerService.Activate();
            protocolManagementService[ISERVER_IDENTIFIER].Opened += MediaCall_Opened;
            protocolManagementService[ISERVER_IDENTIFIER].Closed += MediaCall_Closed;
        }
コード例 #2
0
 /// <summary>
 /// Creates the specified server URI.
 /// </summary>
 /// <param name="serverUri">The server URI.</param>
 /// <param name="userName">Name of the user.</param>
 /// <param name="faultTolerance">The fault tolerance.</param>
 /// <param name="interactionClientType">Type of the interaction client.</param>
 public void Create(Uri serverUri, string userName, FaultToleranceMode faultTolerance, InteractionClient interactionClientType)
 {
     Protocolconfiguration                = null;
     Protocolconfiguration                = new InteractionServerConfiguration(ServerType.Ixnserver.ToString());
     Protocolconfiguration.Uri            = serverUri;
     Protocolconfiguration.ClientName     = "AID_" + userName;
     Protocolconfiguration.ClientType     = interactionClientType;
     Protocolconfiguration.FaultTolerance = faultTolerance;
 }
コード例 #3
0
 /// <summary>
 /// Creates the specified server protocol configuration.
 /// Use this method for FaultTolerance : WarmStandby
 /// Warm standby switch over is set to unlimited time.
 /// </summary>
 /// <param name="serverUri">The server URI.</param>
 /// <param name="userName">Name of the application user.</param>
 /// <param name="interactionClientType">Type of the interaction client.</param>
 /// <param name="warmStandbyUri">Warm standby URI.</param>
 /// <param name="warmStandByTimeOut">Warm stand by time out.</param>
 /// <param name="warmStandByAttempts">Warm stand by attempts.</param>
 public void Create(Uri serverUri, string userName, InteractionClient interactionClientType, Uri warmStandbyUri, Int32 warmStandByTimeOut, Int16 warmStandByAttempts)
 {
     Protocolconfiguration                     = null;
     Protocolconfiguration                     = new InteractionServerConfiguration(ServerType.Ixnserver.ToString());
     Protocolconfiguration.Uri                 = serverUri;
     Protocolconfiguration.ClientName          = "AID_" + userName;
     Protocolconfiguration.FaultTolerance      = FaultToleranceMode.WarmStandby;
     Protocolconfiguration.ClientType          = interactionClientType;
     Protocolconfiguration.WarmStandbyUri      = warmStandbyUri;
     Protocolconfiguration.WarmStandbyTimeout  = warmStandByTimeOut;
     Protocolconfiguration.WarmStandbyAttempts = warmStandByAttempts;
 }
コード例 #4
0
 /// <summary>
 /// Creates the specified server URI.
 /// </summary>
 /// <param name="serverUri">The server URI.</param>
 /// <param name="userName">Name of the user.</param>
 /// <param name="faultTolerance">The fault tolerance.</param>
 /// <param name="interactionClientType">Type of the interaction client.</param>
 /// <param name="addpServerTimeOut">The addp server time out.</param>
 /// <param name="addpClientTimeOut">The addp client time out.</param>
 /// <param name="addpTrace">The addp trace.</param>
 public void Create(Uri serverUri, string userName, FaultToleranceMode faultTolerance, InteractionClient interactionClientType, Int32 addpServerTimeOut, Int32 addpClientTimeOut,
                    AddpTraceMode addpTrace)
 {
     Protocolconfiguration                   = null;
     Protocolconfiguration                   = new InteractionServerConfiguration(ServerType.Ixnserver.ToString());
     Protocolconfiguration.Uri               = serverUri;
     Protocolconfiguration.ClientName        = "AID_" + userName;
     Protocolconfiguration.FaultTolerance    = faultTolerance;
     Protocolconfiguration.ClientType        = interactionClientType;
     Protocolconfiguration.UseAddp           = true;
     Protocolconfiguration.AddpServerTimeout = addpServerTimeOut;
     Protocolconfiguration.AddpClientTimeout = addpClientTimeOut;
     Protocolconfiguration.AddpTrace         = addpTrace.ToString();
 }
コード例 #5
0
 /// <summary>
 /// Creates the specified server types.
 /// </summary>
 public void Create()
 {
     Protocolconfiguration = null;
     Protocolconfiguration = new InteractionServerConfiguration(ServerType.Ixnserver.ToString());
 }