public FabricServer(Guid serverUuid, string groupId, string host, int port, FabricServerModeEnum mode, FabricServerStatusEnum status, float weight, string user, string passowrd) { ServerUuid = serverUuid; GroupId = groupId; Host = host; Port = port; Mode = mode; Status = status; Weight = weight; ReplicationServerInstance = new ReplicationServer( serverUuid.ToString(), mode == FabricServerModeEnum.Read_Write || mode == FabricServerModeEnum.Write_only, string.Format("server={0};port={1};uid={2};password={3};", host, port, user, passowrd) ); }