C# Class Elastacloud.AzureManagement.Fluent.Clients.MobileServiceClient

An azure implementation of a mobile service client
Inheritance: IMobileServiceClient
Show file Open project: azurecoder/fluent-management Class Usage Examples

Public Methods

Method Description
AddSchedulerScript ( string name, string script, int intervalInMinutes ) : void

Adds a scheduled job to WAMS

AddTable ( string tableName, Types defaultPermission = Types.MobileServices.Roles.Application ) : void

Adds a table to mobile services

AddTableScript ( CrudOperation operationType, string tableName, string script, Types permission ) : void

Adds a script for a crud operation to the table

CreateMobileServiceWithNewDb ( string serviceName, string sqlUsername, string sqlPassword ) : void

Used to create a new mobile service

Delete ( bool deleteSqlAzureDatabase = true ) : void

Deletes a mobile service along with any linked database server

MobileServiceClient ( string subscriptionId, X509Certificate2 certificate, string mobileServiceName = null ) : System

Used to construct a mobile service client

Refresh ( ) : void

Refreshes the state of the client

RegenerateKeys ( ) : void

Regenerates both the master and the application keys

Restart ( ) : void

Used to restart the mobile service

Update ( ) : void

Updates any of the settable prooperties of the mobile service

Private Methods

Method Description
BuildBase64Config ( MobileServiceCommand &command ) : void

Builds the configuration necessary to build a mobile service

BuildCrudDictionary ( IList values ) : string>.Dictionary
EnsureMobileServicesName ( ) : void

Ensures that the mobile services name has a value

GetAllSettings ( ) : void

Gets an aggregate of all of the mobile services settings

GetCreateNewServiceSpecification ( ) : string

Used to package the JSON request

GetLiveNotificationSettings ( ) : void

Gets all of the Windows settings for notifications and other things

GetMobileAuthenticationProviderSettings ( ) : void

Gets a list of mobile auth provider settings and populates

GetMobileServiceDetails ( ) : void

Gets the details of the mobile service on startup

GetMobileServiceResources ( ) : void

Gets and populates all of the state of the resources

GetMobileServiceTables ( ) : void

Gets a list of all of the mobile services tables

GetScaleSettings ( ) : void

Gets the webspace properties that will allow the manipulation of the scale

GetServiceSettings ( ) : void

Gets all of the Windows settings for notifications and other things

UpdateAuth ( ) : void

Used to update the authentication for the mobile service

UpdateLiveNotifications ( ) : void

Used to update everything to do with a Microsoft Account including WNS

UpdateService ( ) : void

Used to update the service settings currently dynamic schema only

Method Details

AddSchedulerScript() public method

Adds a scheduled job to WAMS
public AddSchedulerScript ( string name, string script, int intervalInMinutes ) : void
name string The name of the script
script string The actual script
intervalInMinutes int The interval in minutes
return void

AddTable() public method

Adds a table to mobile services
public AddTable ( string tableName, Types defaultPermission = Types.MobileServices.Roles.Application ) : void
tableName string the name of the table
defaultPermission Types Sets the default permission for the table scripts
return void

AddTableScript() public method

Adds a script for a crud operation to the table
public AddTableScript ( CrudOperation operationType, string tableName, string script, Types permission ) : void
operationType CrudOperation The type of operation
tableName string The name of the WAMS table
script string The script to add
permission Types The permissions of the script to upload
return void

CreateMobileServiceWithNewDb() public method

Used to create a new mobile service
public CreateMobileServiceWithNewDb ( string serviceName, string sqlUsername, string sqlPassword ) : void
serviceName string The name of the mobile service
sqlUsername string the name of the sql user
sqlPassword string The sql password
return void

Delete() public method

Deletes a mobile service along with any linked database server
public Delete ( bool deleteSqlAzureDatabase = true ) : void
deleteSqlAzureDatabase bool
return void

MobileServiceClient() public method

Used to construct a mobile service client
public MobileServiceClient ( string subscriptionId, X509Certificate2 certificate, string mobileServiceName = null ) : System
subscriptionId string the subscription id referenced
certificate System.Security.Cryptography.X509Certificates.X509Certificate2 The management certificate to access the subscription
mobileServiceName string The name of the mobile service
return System

Refresh() public method

Refreshes the state of the client
public Refresh ( ) : void
return void

RegenerateKeys() public method

Regenerates both the master and the application keys
public RegenerateKeys ( ) : void
return void

Restart() public method

Used to restart the mobile service
public Restart ( ) : void
return void

Update() public method

Updates any of the settable prooperties of the mobile service
public Update ( ) : void
return void