C# Class Vidyano.Service

Inheritance: NotifyableBase
显示文件 Open project: stevehansen/vidyano_v1

Private Properties

Property Type Description
CancelPendingServiceCalls void
CreateData Newtonsoft.Json.Linq.JObject
GetDefaultValue object
PostAsync Task
SignInAsync Task
UpdateSession System.Threading.Tasks.Task

Public Methods

Method Description
ExecuteActionAsync ( string action, PersistentObject parent = null, Query query = null, QueryResultItem selectedItems = null, string>.Dictionary parameters = null, bool skipHooks = false ) : Task
ExecuteQueryAsync ( Query query, PersistentObject parent = null, string filterName = null, bool asLookup = false ) : Task
FromServiceString ( string value, string typeName ) : object
GetClientData ( ) : Task
GetClrType ( string type ) : Type
GetNoInternetMessage ( string language = null ) : NoInternetMessage
GetPersistentObjectAsync ( string id, string objectId = null ) : Task
GetQueryAsync ( string id, string filterName = null ) : Task
GetStreamAsync ( PersistentObject registeredStream ) : string>>.Task
Service ( ) : System
SignInUsingAccessTokenAsync ( string accessToken, string serviceProvider = "Microsoft" ) : Task
SignInUsingAuthTokenAsync ( string user, string token ) : Task
SignInUsingCredentialsAsync ( string user, string password ) : Task
SignOut ( ) : System.Threading.Tasks.Task
ToServiceString ( object value ) : string

Private Methods

Method Description
CancelPendingServiceCalls ( ) : void
CreateData ( string user = null, string authToken = null ) : Newtonsoft.Json.Linq.JObject
GetDefaultValue ( Type type, string dataType = null ) : object
PostAsync ( string method, Newtonsoft.Json.Linq.JObject data ) : Task
SignInAsync ( string user, string password, string token = null, string accessToken = null, string serviceProvider = null ) : Task
UpdateSession ( Newtonsoft.Json.Linq.JObject response ) : System.Threading.Tasks.Task

Method Details

ExecuteActionAsync() public method

public ExecuteActionAsync ( string action, PersistentObject parent = null, Query query = null, QueryResultItem selectedItems = null, string>.Dictionary parameters = null, bool skipHooks = false ) : Task
action string
parent Vidyano.ViewModel.PersistentObject
query Query
selectedItems Vidyano.ViewModel.QueryResultItem
parameters string>.Dictionary
skipHooks bool
return Task

ExecuteQueryAsync() public method

public ExecuteQueryAsync ( Query query, PersistentObject parent = null, string filterName = null, bool asLookup = false ) : Task
query Query
parent Vidyano.ViewModel.PersistentObject
filterName string
asLookup bool
return Task

FromServiceString() public static method

public static FromServiceString ( string value, string typeName ) : object
value string
typeName string
return object

GetClientData() public method

public GetClientData ( ) : Task
return Task

GetClrType() public static method

public static GetClrType ( string type ) : Type
type string
return System.Type

GetNoInternetMessage() public static method

public static GetNoInternetMessage ( string language = null ) : NoInternetMessage
language string
return NoInternetMessage

GetPersistentObjectAsync() public method

public GetPersistentObjectAsync ( string id, string objectId = null ) : Task
id string
objectId string
return Task

GetQueryAsync() public method

public GetQueryAsync ( string id, string filterName = null ) : Task
id string
filterName string
return Task

GetStreamAsync() public method

public GetStreamAsync ( PersistentObject registeredStream ) : string>>.Task
registeredStream Vidyano.ViewModel.PersistentObject
return string>>.Task

Service() public method

public Service ( ) : System
return System

SignInUsingAccessTokenAsync() public method

public SignInUsingAccessTokenAsync ( string accessToken, string serviceProvider = "Microsoft" ) : Task
accessToken string
serviceProvider string
return Task

SignInUsingAuthTokenAsync() public method

public SignInUsingAuthTokenAsync ( string user, string token ) : Task
user string
token string
return Task

SignInUsingCredentialsAsync() public method

public SignInUsingCredentialsAsync ( string user, string password ) : Task
user string
password string
return Task

SignOut() public method

public SignOut ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

ToServiceString() public static method

public static ToServiceString ( object value ) : string
value object
return string