C# Class Candy.Client.Models.ApplicationManager

Inheritance: NotificationObject
Show file Open project: Wabyon/Candy Class Usage Examples

Private Properties

Property Type Description
EnumerateParents IEnumerable
RaiseError void
RegisterMeIfNotRegistered void
ScanCommonPrefix string

Public Methods

Method Description
ApplicationManager ( IStateRepository repository ) : System

使用する IStateRepository を指定して、ApplicationManager クラスの新しいインスタンスを初期化します。

AutoSuggestApplicationDirectory ( ) : System.Threading.Tasks.Task
InstallApplicationAsync ( string id ) : Task
LoadAsync ( ) : System.Threading.Tasks.Task

永続化されているアプリケーション構成情報を非同期で読み込みます。

RegisterInstalledApplication ( string applicationPath ) : System.Threading.Tasks.Task

RemoveApplicationAsync ( Candy.Client.Models.InstalledApplication app ) : System.Threading.Tasks.Task

SaveAsync ( ) : System.Threading.Tasks.Task

このアプリケーション構成情報を非同期で永続化します。

SuggestApplicationDirectory ( IReadOnlyList apps ) : string

Protected Methods

Method Description
Dispose ( bool disposing ) : void
OnError ( ErrorEventArgs e ) : void

Private Methods

Method Description
EnumerateParents ( DirectoryInfo dir ) : IEnumerable
RaiseError ( string message ) : void
RegisterMeIfNotRegistered ( ) : void
ScanCommonPrefix ( IEnumerable args ) : string

Method Details

ApplicationManager() public method

使用する IStateRepository を指定して、ApplicationManager クラスの新しいインスタンスを初期化します。
public ApplicationManager ( IStateRepository repository ) : System
repository IStateRepository 使用する
return System

AutoSuggestApplicationDirectory() public method

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

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

InstallApplicationAsync() public method

public InstallApplicationAsync ( string id ) : Task
id string
return Task

LoadAsync() public method

永続化されているアプリケーション構成情報を非同期で読み込みます。
public LoadAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

OnError() protected method

protected OnError ( ErrorEventArgs e ) : void
e ErrorEventArgs
return void

RegisterInstalledApplication() public method

public RegisterInstalledApplication ( string applicationPath ) : System.Threading.Tasks.Task
applicationPath string
return System.Threading.Tasks.Task

RemoveApplicationAsync() public method

public RemoveApplicationAsync ( Candy.Client.Models.InstalledApplication app ) : System.Threading.Tasks.Task
app Candy.Client.Models.InstalledApplication
return System.Threading.Tasks.Task

SaveAsync() public method

このアプリケーション構成情報を非同期で永続化します。
public SaveAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

SuggestApplicationDirectory() public static method

public static SuggestApplicationDirectory ( IReadOnlyList apps ) : string
apps IReadOnlyList
return string