示例#1
0
        /// <summary>Prepares the request to be sent to the server.</summary>
        /// <param name="requestWriter">The binary stream writer that should be used to write any request data necessary.</param>
        protected override void PackRequest(BinaryWriter requestWriter)
        {
            requestWriter.Write(SessionPlayedId);

            string tempDate = GamingDate.ToString("MM/dd/yyyy", CultureInfo.InvariantCulture);

            requestWriter.Write((ushort)tempDate.Length);
            requestWriter.Write(tempDate.ToCharArray());

            requestWriter.Write(OverridePriorIncreases);
            requestWriter.Write(SpawnAutomatedTransactions);
        }
示例#2
0
        /// <summary>
        /// Prepares the request to be sent to the server.
        /// </summary>
        protected override void PackRequest()
        {
            // Create the streams we will be writing to.
            MemoryStream requestStream = new MemoryStream();
            BinaryWriter requestWriter = new BinaryWriter(requestStream, Encoding.Unicode);

            // Session Number
            requestWriter.Write(Session);

            //gaming date
            string tempDate = GamingDate.ToString("MM/dd/yyyy", CultureInfo.InvariantCulture);

            requestWriter.Write((ushort)tempDate.Length);
            requestWriter.Write(tempDate.ToCharArray());

            // Set the bytes to be sent.
            m_requestPayload = requestStream.ToArray();

            // Close the streams.
            requestWriter.Close();
        }