Ejemplo n.º 1
0
        private async void InitializeException_Click(object sender, RoutedEventArgs e)
        {
            var o = new AsyncConstructorInitializeException();

            Result = o;

            await o.InitializeAsync();
        }
        public async Task <IHttpActionResult> InitializeException()
        {
            var o = new AsyncConstructorInitializeException();

            // Recommended way
            // Easy to link the task
            await o.InitializeAsync();

            return(Ok(o.Message));
        }
        public async Task InitializeException()
        {
            var o = new AsyncConstructorInitializeException();

            await o.InitializeAsync();
        }