C# Class Microsoft.WindowsAzure.MobileServices.MobileServiceClient

Provides basic access to Mobile Services.
Exibir arquivo Open project: xamarin/azure-mobile-services Class Usage Examples

Public Methods

Method Description
GetTable ( string tableName ) : IMobileServiceTable

Gets a reference to a table and its data operations.

MobileServiceClient ( Uri applicationUri ) : System

Initializes a new instance of the MobileServiceClient class.

MobileServiceClient ( Uri applicationUri, string applicationKey ) : System

Initializes a new instance of the MobileServiceClient class.

Private Methods

Method Description
GetResponseJsonAsync ( IServiceFilterResponse response ) : IJsonValue
LoginAsync ( Context context, MobileServiceAuthenticationProvider provider ) : Task
LoginAsync ( Context context, MobileServiceAuthenticationProvider provider, JsonObject token ) : Task
LoginAsync ( RectangleF rectangle, UIView view, MobileServiceAuthenticationProvider provider ) : Task
LoginAsync ( RectangleF rectangle, UIView view, MobileServiceAuthenticationProvider provider, JsonObject token ) : Task
LoginAsync ( UIBarButtonItem barButtonItem, MobileServiceAuthenticationProvider provider ) : Task
LoginAsync ( UIBarButtonItem barButtonItem, MobileServiceAuthenticationProvider provider, JsonObject token ) : Task
LoginAsync ( UIViewController viewController, MobileServiceAuthenticationProvider provider ) : Task
LoginAsync ( UIViewController viewController, MobileServiceAuthenticationProvider provider, JsonObject token ) : Task
Logout ( ) : void
MobileServiceClient ( MobileServiceClient service ) : System

Initializes a new instance of the MobileServiceClient class based on an existing instance.

RequestAsync ( string method, string uriFragment, IJsonValue content ) : Task

Perform a web request and include the standard Mobile Services headers.

SendLoginAsync ( Context context, MobileServiceAuthenticationProvider provider, JsonObject token = null ) : Task

Log a user into a Mobile Services application given a provider name and optional token object.

SendLoginAsync ( MobileServiceAuthenticationProvider provider, JsonObject token = null ) : Task

Log a user into a Mobile Services application given a provider name and optional token object.

SendLoginAsync ( RectangleF rect, object view, MobileServiceAuthenticationProvider provider, JsonObject token = null ) : Task
SendLoginAsync ( string authenticationToken ) : Task

Log a user into a Mobile Services application given an access token.

SetupCurrentUser ( IJsonValue value ) : void
ThrowInvalidResponse ( IServiceFilterRequest request, IServiceFilterResponse response, IJsonValue body ) : void

Throw an exception for an invalid response to a web request.

WithFilter ( IServiceFilter filter ) : MobileServiceClient

Method Details

GetTable() public method

Gets a reference to a table and its data operations.
public GetTable ( string tableName ) : IMobileServiceTable
tableName string The name of the table.
return IMobileServiceTable

MobileServiceClient() public method

Initializes a new instance of the MobileServiceClient class.
public MobileServiceClient ( Uri applicationUri ) : System
applicationUri System.Uri /// The Uri to the Mobile Services application. ///
return System

MobileServiceClient() public method

Initializes a new instance of the MobileServiceClient class.
public MobileServiceClient ( Uri applicationUri, string applicationKey ) : System
applicationUri System.Uri /// The Uri to the Mobile Services application. ///
applicationKey string /// The application name for the Mobile Services application. ///
return System