예제 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="str"></param>
        private static void WrapperSyncMethodAsync(string str)
        {
            SyncMethodDelegate syncMethodDelegate = SyncMethod;

            syncMethodDelegate.BeginInvoke(str, param =>
            {
                var result = syncMethodDelegate.EndInvoke(param);

                // using the result to do something
                Trace.WriteLine(result);
            }, null);
        }