コード例 #1
0
 /// <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>
 public void Create(Uri serverUri, string userNickName, UserType userType, string personId, FaultToleranceMode faultTolerance)
 {
     Protocolconfiguration                = null;
     Protocolconfiguration                = new BasicChatConfiguration(ServerType.Chatserver.ToString());
     Protocolconfiguration.Uri            = serverUri;
     Protocolconfiguration.UserNickname   = userNickName;
     Protocolconfiguration.UserType       = userType;
     Protocolconfiguration.PersonId       = personId;
     Protocolconfiguration.FaultTolerance = faultTolerance;
 }
コード例 #2
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="warmStandbyUri">Warm standby 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="warmStandByTimeOut">Warm stand by time out.</param>
 /// <param name="warmStandByAttempts">Warm stand by attempts.</param>
 public void Create(Uri serverUri, string userName, Uri warmStandbyUri, string userNickName, UserType userType, string personId, Int32 warmStandByTimeOut, Int16 warmStandByAttempts)
 {
     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;
 }
コード例 #3
0
 /// <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();
 }
コード例 #4
0
 /// <summary>
 /// Creates the specified server types.
 /// </summary>
 public void Create()
 {
     Protocolconfiguration = null;
     Protocolconfiguration = new BasicChatConfiguration(ServerType.Chatserver.ToString());
 }