C# Class PlaygroundKeeper.HiveManager

显示文件 Open project: Starcounter/PlaygroundKeeper

Public Methods

Method Description
CreateHive ( PlaygroundHost host, Action completionCallback = null, double>.Action progressCallback = null, Action errorCallback = null ) : void

Create a new hive on a host

The hive name is the current signed in user username.

CreateHiveAndInstallSoftware ( PlaygroundHost host, string depotKey, string appId, Action completionCallback = null, double>.Action progressCallback = null, Action errorCallback = null ) : void

Create a new hive on a host and install software in a new hive

DeleteHive ( Playground hive, System.Action completionCallback = null, double>.Action progressCallback = null, Action errorCallback = null ) : void

Delete a hive

InstallSoftware ( string depotKey, string appId, Playground hive, Action completionCallback = null, double>.Action progressCallback = null, Action errorCallback = null ) : void

Install software in a hive

SyncHives ( ) : void

Sync local hives with it's real database on the hosts

Private Methods

Method Description
ProcessTasks ( ConcurrentQueue tasks, ConcurrentStack revertList, System.Action completionCallback = null, double>.Action progressCallback = null, Action errorCallback = null ) : void

Process task list

ProcessTasksLoop ( int initialNumberOfTasks, ConcurrentQueue tasks, ConcurrentStack revertList, System.Action completionCallback = null, double>.Action progressCallback = null, Action errorCallback = null ) : void

SyncHive ( Playground hive, System.Action completionCallback, Action errorCallback ) : void
SyncHost ( PlaygroundHost host, System.Action completionCallback, Action errorCallback ) : void

Method Details

CreateHive() public static method

Create a new hive on a host
The hive name is the current signed in user username.
public static CreateHive ( PlaygroundHost host, Action completionCallback = null, double>.Action progressCallback = null, Action errorCallback = null ) : void
host PlaygroundHost
completionCallback Action
progressCallback double>.Action
errorCallback Action
return void

CreateHiveAndInstallSoftware() public static method

Create a new hive on a host and install software in a new hive
public static CreateHiveAndInstallSoftware ( PlaygroundHost host, string depotKey, string appId, Action completionCallback = null, double>.Action progressCallback = null, Action errorCallback = null ) : void
host PlaygroundHost
depotKey string
appId string
completionCallback Action
progressCallback double>.Action
errorCallback Action
return void

DeleteHive() public static method

Delete a hive
public static DeleteHive ( Playground hive, System.Action completionCallback = null, double>.Action progressCallback = null, Action errorCallback = null ) : void
hive Playground
completionCallback System.Action
progressCallback double>.Action
errorCallback Action
return void

InstallSoftware() public static method

Install software in a hive
public static InstallSoftware ( string depotKey, string appId, Playground hive, Action completionCallback = null, double>.Action progressCallback = null, Action errorCallback = null ) : void
depotKey string
appId string
hive Playground
completionCallback Action
progressCallback double>.Action
errorCallback Action
return void

SyncHives() public static method

Sync local hives with it's real database on the hosts
public static SyncHives ( ) : void
return void