Amazon.Runtime.Internal.Util.EventStream.EndRead C# (CSharp) Метод

EndRead() публичный Метод

public EndRead ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
Результат int
        public override int EndRead(IAsyncResult asyncResult)
        {
            var result = asyncResult as AsyncResult;
            if (result == null)
                throw new ArgumentException("Parameter asyncResult was not of type Amazon.Runtime.Internal.Util.AsyncResult", "asyncResult");
            if (result.Return is Exception)
                throw (Exception)result.Return;

            return Convert.ToInt32(result.Return, CultureInfo.InvariantCulture);
        }