/// <summary>
 /// Creates the specified server protocol configuration.
 /// Use this method for FaultTolerance : None & HotStandby
 /// </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="addpServerTimeOut">Addp server time out.</param>
 /// <param name="addpClientTimeOut">Addp client time out.</param>
 /// <param name="addpTrace">Addp trace mode.</param>
 public void Create(Uri serverUri, string userName, FaultToleranceMode faultTolerance, Int32 addpServerTimeOut, Int32 addpClientTimeOut,
                    AddpTraceMode addpTrace)
 {
     Protocolconfiguration                   = null;
     Protocolconfiguration                   = new UcsConfiguration(ServerType.Ucserver.ToString());
     Protocolconfiguration.Uri               = serverUri;
     Protocolconfiguration.ClientName        = "AID_" + userName;
     Protocolconfiguration.FaultTolerance    = faultTolerance;
     Protocolconfiguration.UseAddp           = true;
     Protocolconfiguration.AddpServerTimeout = addpServerTimeOut;
     Protocolconfiguration.AddpClientTimeout = addpClientTimeOut;
     Protocolconfiguration.AddpTrace         = addpTrace.ToString();
 }
 /// <summary>
 /// Creates the specified server types.
 /// </summary>
 /// <param name="serverUri">The server URI.</param>
 /// <param name="userNickName">Nick name of the user.</param>
 /// <param name="userType">Type of the user.</param>
 /// <param name="personId">The person identifier.</param>
 /// <param name="faultTolerance">The fault tolerance.</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 userNickName, UserType userType, string personId, FaultToleranceMode faultTolerance, Int32 addpServerTimeOut, Int32 addpClientTimeOut,
                    AddpTraceMode addpTrace)
 {
     Protocolconfiguration                   = null;
     Protocolconfiguration                   = new BasicChatConfiguration(ServerType.Chatserver.ToString());
     Protocolconfiguration.Uri               = serverUri;
     Protocolconfiguration.UserNickname      = userNickName;
     Protocolconfiguration.UserType          = userType;
     Protocolconfiguration.PersonId          = personId;
     Protocolconfiguration.FaultTolerance    = faultTolerance;
     Protocolconfiguration.UseAddp           = true;
     Protocolconfiguration.AddpServerTimeout = addpServerTimeOut;
     Protocolconfiguration.AddpClientTimeout = addpClientTimeOut;
     Protocolconfiguration.AddpTrace         = addpTrace.ToString();
 }
Example #3
0
 /// <summary>
 /// Creates the specified server protocol configuration.
 /// Use this method for FaultTolerance : None & HotStandby
 /// </summary>
 /// <param name="serverUri">The server URI.</param>
 /// <param name="appType">Type of the application.</param>
 /// <param name="userName">Name of the user.</param>
 /// <param name="password">user's password.</param>
 /// <param name="faultTolerance">The fault tolerance.</param>
 /// <param name="addpServerTimeOut">Addp server time out.</param>
 /// <param name="addpClientTimeOut">Addp client time out.</param>
 /// <param name="addpTrace">Addp trace mode.</param>
 public void Create(Uri serverUri, CfgAppType appType, string clientName, string userName, string password, FaultToleranceMode faultTolerance, Int32 addpServerTimeOut, Int32 addpClientTimeOut,
                    AddpTraceMode addpTrace)
 {
     Protocolconfiguration     = null;
     Protocolconfiguration     = new ConfServerConfiguration(ServerType.Configserver.ToString());
     Protocolconfiguration.Uri = serverUri;
     Protocolconfiguration.ClientApplicationType = appType;
     Protocolconfiguration.ClientName            = clientName;
     Protocolconfiguration.UserName          = userName;
     Protocolconfiguration.UserPassword      = password;
     Protocolconfiguration.FaultTolerance    = faultTolerance;
     Protocolconfiguration.UseAddp           = true;
     Protocolconfiguration.AddpServerTimeout = addpServerTimeOut;
     Protocolconfiguration.AddpClientTimeout = addpClientTimeOut;
     Protocolconfiguration.AddpTrace         = addpTrace.ToString();
 }
 /// <summary>
 /// Creates the specified server protocol configuration.
 /// </summary>
 /// <param name="serverUri">The server URI.</param>
 /// <param name="userName">Name of the user.</param>
 /// <param name="warmStandbyUri">The warm standby URI.</param>
 /// <param name="warmStandByTimeOut">The warm stand by time out.</param>
 /// <param name="warmStandByAttempts">The warm stand by attempts.</param>
 /// <param name="addpServerTimeOut">Addp server time out.</param>
 /// <param name="addpClientTimeOut">Addp client time out.</param>
 /// <param name="addpTrace">Addp trace mode.</param>
 public void Create(Uri serverUri, string userName, Uri warmStandbyUri, Int32 warmStandByTimeOut, Int16 warmStandByAttempts,
                    Int32 addpServerTimeOut, Int32 addpClientTimeOut, AddpTraceMode addpTrace)
 {
     Protocolconfiguration                     = null;
     Protocolconfiguration                     = new UcsConfiguration(ServerType.Ucserver.ToString());
     Protocolconfiguration.Uri                 = serverUri;
     Protocolconfiguration.ClientName          = "AID_" + userName;
     Protocolconfiguration.FaultTolerance      = FaultToleranceMode.WarmStandby;
     Protocolconfiguration.WarmStandbyUri      = warmStandbyUri;
     Protocolconfiguration.WarmStandbyTimeout  = warmStandByTimeOut;
     Protocolconfiguration.WarmStandbyAttempts = warmStandByAttempts;
     Protocolconfiguration.UseAddp             = true;
     Protocolconfiguration.AddpServerTimeout   = addpServerTimeOut;
     Protocolconfiguration.AddpClientTimeout   = addpClientTimeOut;
     Protocolconfiguration.AddpTrace           = addpTrace.ToString();
 }
 /// <summary>
 /// Creates the specified server protocol configuration.
 /// </summary>
 /// <param name="serverUri">The server URI.</param>
 /// <param name="userNickName">Nick name of the user.</param>
 /// <param name="userType">Type of the user.</param>
 /// <param name="personId">The person identifier.</param>
 /// <param name="warmStandbyUri">The warm standby URI.</param>
 /// <param name="warmStandByTimeOut">The warm stand by time out.</param>
 /// <param name="warmStandByAttempts">The warm stand by attempts.</param>
 /// <param name="addpServerTimeOut">Addp server time out.</param>
 /// <param name="addpClientTimeOut">Addp client time out.</param>
 /// <param name="addpTrace">Addp trace mode.</param>
 public void Create(Uri serverUri, string userNickName, UserType userType, string personId, Uri warmStandbyUri, Int32 warmStandByTimeOut, Int16 warmStandByAttempts,
                    Int32 addpServerTimeOut, Int32 addpClientTimeOut, AddpTraceMode addpTrace)
 {
     Protocolconfiguration                     = null;
     Protocolconfiguration                     = new BasicChatConfiguration(ServerType.Chatserver.ToString());
     Protocolconfiguration.Uri                 = serverUri;
     Protocolconfiguration.UserNickname        = userNickName;
     Protocolconfiguration.UserType            = userType;
     Protocolconfiguration.PersonId            = personId;
     Protocolconfiguration.FaultTolerance      = FaultToleranceMode.WarmStandby;
     Protocolconfiguration.WarmStandbyUri      = warmStandbyUri;
     Protocolconfiguration.WarmStandbyTimeout  = warmStandByTimeOut;
     Protocolconfiguration.WarmStandbyAttempts = warmStandByAttempts;
     Protocolconfiguration.UseAddp             = true;
     Protocolconfiguration.AddpServerTimeout   = addpServerTimeOut;
     Protocolconfiguration.AddpClientTimeout   = addpClientTimeOut;
     Protocolconfiguration.AddpTrace           = addpTrace.ToString();
 }
Example #6
0
 /// <summary>
 /// Creates the specified server protocol configuration.
 /// </summary>
 /// <param name="serverUri">The server URI.</param>
 /// <param name="appType">Type of the application.</param>
 /// <param name="userName">Name of the user.</param>
 /// <param name="password">user's password.</param>
 /// <param name="warmStandbyUri">The warm standby URI.</param>
 /// <param name="warmStandByTimeOut">The warm stand by time out.</param>
 /// <param name="warmStandByAttempts">The warm stand by attempts.</param>
 /// <param name="addpServerTimeOut">Addp server time out.</param>
 /// <param name="addpClientTimeOut">Addp client time out.</param>
 /// <param name="addpTrace">Addp trace mode.</param>
 public void Create(Uri serverUri, CfgAppType appType, string clientName, string userName, string password, Uri warmStandbyUri, Int32 warmStandByTimeOut, Int16 warmStandByAttempts,
                    Int32 addpServerTimeOut, Int32 addpClientTimeOut, AddpTraceMode addpTrace)
 {
     Protocolconfiguration     = null;
     Protocolconfiguration     = new ConfServerConfiguration(ServerType.Configserver.ToString());
     Protocolconfiguration.Uri = serverUri;
     Protocolconfiguration.ClientApplicationType = appType;
     Protocolconfiguration.ClientName            = clientName;
     Protocolconfiguration.UserName            = userName;
     Protocolconfiguration.UserPassword        = password;
     Protocolconfiguration.FaultTolerance      = FaultToleranceMode.WarmStandby;
     Protocolconfiguration.WarmStandbyUri      = warmStandbyUri;
     Protocolconfiguration.WarmStandbyTimeout  = warmStandByTimeOut;
     Protocolconfiguration.WarmStandbyAttempts = warmStandByAttempts;
     Protocolconfiguration.UseAddp             = true;
     Protocolconfiguration.AddpServerTimeout   = addpServerTimeOut;
     Protocolconfiguration.AddpClientTimeout   = addpClientTimeOut;
     Protocolconfiguration.AddpTrace           = addpTrace.ToString();
 }