コード例 #1
0
        /// <summary>
        /// Sends an ECU identifier request
        /// </summary>
        public IAsyncResult BeginGetEcuIdentifier(AsyncCallback callback, object state)
        {
            Trace.WriteLine("SsmInterface.BeginGetEcuIdentifier");
            this.BeginOperation();

            GetEcuIdentifierAsyncResult internalState = new GetEcuIdentifierAsyncResult(
                callback,
                state);
            SsmPacket request = SsmPacket.CreateEcuIdentifierRequest();

            this.stream.BeginWrite(
                request.Data,
                0,
                request.Data.Length,
                this.EcuIdentifierRequestWritten,
                internalState);
            return(internalState);
        }