Click or drag to resize
IPackageManager Interface
Handles the installation and file management of the Pacakges used to extend the functionality of the application.

Namespace: OpenIIoT.SDK.Package
Assembly: OpenIIoT.SDK (in OpenIIoT.SDK.dll) Version: 0.5.0.39086
Syntax
public interface IPackageManager : IManager, 
	IStateful, IEventProvider, IProvider

The IPackageManager type exposes the following members.

Properties
  NameDescription
Public propertyAutomaticRestartPending
Gets a value indicating whether the stateful object is pending an automatic restart.
(Inherited from IManager.)
Public propertyEventProviderName
Gets the Event Provider name.
(Inherited from IEventProvider.)
Public propertyManagerName
Gets the name of the Manager.
(Inherited from IManager.)
Public propertyPackages
Gets the list of Packages available for installation.
Public propertyState
Gets the current State of the stateful object.
(Inherited from IStateful.)
Top
Methods
  NameDescription
Public methodCreatePackage
Creates a IPackage file with the specified data.
Public methodCreatePackageAsync
Asynchronously creates a IPackage file with the specified data.
Public methodDeletePackage
Deletes the IPackage matching the specified Fully Qualified Name from disk.
Public methodDeletePackageAsync
Asynchronously deletes the IPackage matching the specified Fully Qualified Name from disk.
Public methodFindPackage

Scans the Packages list for a Package matching the specified Fully Qualified Name and, if found, returns the found Package.

If a matching Package is not found, the ScanPackages method is invoked to refresh the Packages list from disk.

Public methodFindPackageAsync

Asynchronously scans the Packages list for a Package matching the specified Fully Qualified Name and, if found, returns the found Package.

If a matching Package is not found, the ScanPackages method is invoked to refresh the Packages list from disk.

Public methodInstallPackage(String)
Installs the specified IPackage (extracts it to disk).
Public methodInstallPackage(String, PackageInstallationOptions)
Installs the specified IPackage (extracts it to disk) using the specified options.
Public methodInstallPackageAsync(String)
Asynchronously installs the specified IPackage (extracts it to disk).
Public methodInstallPackageAsync(String, PackageInstallationOptions)
Asynchronously installs the specified IPackage (extracts it to disk) using the specified options.
Public methodIsInState
Returns true if any of the specified State s match the current State.
(Inherited from IStateful.)
Public methodReadPackage
Reads the IPackage file matching the specified Fully Qualified Name and returns the binary data.
Public methodReadPackageAsync
Asynchronously reads the IPackage file matching the specified Fully Qualified Name and returns the binary data.
Public methodRestart
Restarts the stateful object.
(Inherited from IStateful.)
Public methodScanPackages
Scans for and returns a list of all Package files in the configured Packages directory.
Public methodScanPackagesAsync
Asynchronously scans for and returns a list of all Package files in the configured Package directory.
Public methodStart
Starts the stateful object.
(Inherited from IStateful.)
Public methodStop
Stops the stateful object.
(Inherited from IStateful.)
Public methodVerifyPackage
Verifies the specified IPackage using the optionally specified PGP Public Key.
Public methodVerifyPackageAsync
Asynchronously verifies the specified IPackage using the optionally specified PGP Public Key.
Top
Events
  NameDescription
Public eventStateChanged
Occurs when the State property changes.
(Inherited from IStateful.)
Top
See Also