Amazon AWS SDK Guide de l'utilisateur Page 21

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 73
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 20
Asynchronous API for .NET 4.5, Windows Store,
and Windows Phone 8
The AWS SDK for .NET uses the new task-based asynchronous pattern for .NET 4.5, Windows Store,
and Windows Phone 8.You can use the async and await keywords to perform and manage asynchronous
operations for all AWS products without blocking.
To learn more about the task-based asynchronous pattern, see Task-based Asynchronous Pattern (TAP)
on MSDN.
Asynchronous API for .NET 3.5
The AWS SDK for .NET supports asynchronous (async) versions of most of the method calls exposed
by the .NET client classes.The async methods enable you to call AWS services without having your code
block on the response from the service. For example, you could make a request to write data to Amazon
S3 or DynamoDB and then have your code continue to do other work while AWS processes the requests.
Syntax of Async Request Methods
There are two phases to making an asynchronous request to an AWS service.The first is to call the Begin
method for the request. This method initiates the asynchronous operation. Then, after some period of
time, you would call the corresponding End method.This method retrieves the response from the service
and also provides an opportunity to handle exceptions that might have occurred during the operation.
Note
It is not required that you call the End method. Assuming that no errors are encountered, the
asynchronous operation will complete whether or not you call End.
Begin Method Syntax
In addition to taking a request object parameter, such as PutItemRequest, the async Begin methods
take two additional parameters: a callback function, and a state object. Instead of returning a service re-
sponse object, the Begin methods return a result of type IAsyncResult. For the definition of this type,
go to the MSDN documentation.
Synchronous Method
PutItemResponse PutItem(
PutItemRequest putItemRequest
)
Asynchronous Method
IAsyncResult BeginPutItem(
GetSessionTokenRequest getSessionTokenRequest,
AsyncCallback callback,
Object state
)
AsyncCallback callback
The callback function is called when the asynchronous operation completes.When the function is called,
it receives a single parameter of type IAsyncResult. The callback function has the following signature.
Version v2.0.0
17
AWS SDK for .NET Developer Guide
Asynchronous API for .NET 4.5,Windows Store, and
Windows Phone 8
Vue de la page 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26 ... 72 73

Commentaires sur ces manuels

Pas de commentaire

Samsung LRS35LMGLM manuály

Uživatelské manuály a uživatelské příručky pro ne Samsung LRS35LMGLM.
Poskytujeme 1 manuály pdf Samsung LRS35LMGLM ke stažení zdarma podle typů dokumentů: Uživatelský manuál






Další produkty a příručky pro ne Samsung

Modely Typ Dokumentu
ZDZ30 Uživatelský manuál Samsung ZDZ30 빠른 시작 가이드, 2 stránky
HMX-H205BP Uživatelský manuál Samsung HMX-H200LP 사용자 매뉴얼, 141 stránky
ME83KRQS-3 Uživatelský manuál    Samsung Микроволновая печь Соло ME83KRQS-3, 23 л Инструкция по использованию, 144 stránky
HMX-T10BN Uživatelský manuál   Samsung HMX-T10BN 사용자 매뉴얼, 123 stránky
UA70KU6000K Uživatelský manuál   Samsung 70'' UHD 4K Flat Smart TV KU6000 Series 6 คู่มือการใช้, 16 stránky
SPH-X1000W Uživatelský manuál Samsung SPH-X1000W 사용자 매뉴얼, 152 stránky
DB10D Uživatelský manuál Samsung DB10D 빠른 시작 가이드 [da] , 2 stránky
LT17E2B Uživatelský manuál Samsung LT17E2B 사용자 매뉴얼, 32 stránky
WF80F5E5U2X/AH Uživatelský manuál   Samsung WF80F5E5U2X/AH Hızlı başlangıç ​​Kılavuzu [ja] [zh] , 9 stránky
SAMSUNG ST500 Uživatelský manuál   Samsung ST500 Používateľská príručka, 110 stránky
YP-Q2JAB Uživatelský manuál   Samsung YP-Q2JAB Bruksanvisning, 99 stránky
WF600U0BCWQ Uživatelský manuál   Samsung Стиральная машина BAIKAL2 с цифровым инверторным двигателем, 6 кг Инструкция по использованию [da] , 42 stránky
UN65NU7100F Uživatelský manuál Samsung QLED TV QN65Q7FNAFXKR 163 cm 사용자 설명서, 152 stránky
SM-G925X Uživatelský manuál Samsung SM-G925F دليل المستخدم (Lollipop), 152 stránky
OM46D-W Uživatelský manuál    Samsung OM55D-W الدليل السريع [ja] [zh] , 2 stránky
MA30 Uživatelský manuál Samsung MA30 빠른 시작 가이드, 4 stránky
SRT74HWSGM Uživatelský manuál Samsung SRT74HWSGM 빠른 시작 가이드, 22 stránky
CPN22NF Uživatelský manuál Samsung CPN22NF 사용자 매뉴얼 [ar] , 35 stránky
AR18KSFHBWKN Uživatelský manuál   Samsung AR18KSFHBWKN Benutzerhandbuch, 31 stránky
WT-36Z4HD Uživatelský manuál Samsung WT-36Z4HD 사용자 매뉴얼, 41 stránky