PackageProvider
Namespace: AnyPackage.Provider
The PackageProvider
class.
public abstract class PackageProvider
Inheritance Object → PackageProvider
Properties
ProviderInfo
Gets the package provider information.
public PackageProviderInfo ProviderInfo { get; internal set; }
Property Value
Remarks:
If a derived type of PackageProviderInfo
was returned from the Initialize
method, it will be set here in all subsequent calls to the provider.
Methods
Initialize(PackageProviderInfo)
Performs one time initialization for the package provider during registration.
protected PackageProviderInfo Initialize(PackageProviderInfo providerInfo)
Parameters
providerInfo
PackageProviderInfo
Returns
Returns PackageProviderInfo or derived type that can be used
to present new properties or methods to the user.
It can also be used maintain state or cache between instances of
the package provider.
Initialize()
internal void Initialize()
Clean()
Performs one time clean up of the package provider during unregistration.
protected internal void Clean()
GetDynamicParameters(String)
Gets the dynamic parameters for command name.
protected internal object GetDynamicParameters(string commandName)
Parameters
commandName
String
The cmdlet name.
Returns
The method can be overwritten to return an object
or a RuntimeDefinedParameterDictionary.
IsSource(String)
Gets if the source is supported by the provider.
protected internal bool IsSource(string source)
Parameters
source
String
The source parameter from cmdlets.
Returns
Boolean
Returns true if source is supported.
Remarks:
The default implementation returns true
.
IsSupportedFileExtension(String)
internal bool IsSupportedFileExtension(string extension)
Parameters
extension
String
Returns
IsSupportedUriScheme(String)
internal bool IsSupportedUriScheme(string extension)
Parameters
extension
String
Returns
FindPackage(PackageRequest)
internal void FindPackage(PackageRequest request)
Parameters
request
PackageRequest
GetPackage(PackageRequest)
internal void GetPackage(PackageRequest request)
Parameters
request
PackageRequest
InstallPackage(PackageRequest)
internal void InstallPackage(PackageRequest request)
Parameters
request
PackageRequest
SavePackage(PackageRequest)
internal void SavePackage(PackageRequest request)
Parameters
request
PackageRequest
PublishPackage(PackageRequest)
internal void PublishPackage(PackageRequest request)
Parameters
request
PackageRequest
UninstallPackage(PackageRequest)
internal void UninstallPackage(PackageRequest request)
Parameters
request
PackageRequest
UpdatePackage(PackageRequest)
internal void UpdatePackage(PackageRequest request)
Parameters
request
PackageRequest
GetSource(SourceRequest)
internal void GetSource(SourceRequest request)
Parameters
request
SourceRequest
RegisterSource(SourceRequest)
internal void RegisterSource(SourceRequest request)
Parameters
request
SourceRequest
SetSource(SourceRequest)
internal void SetSource(SourceRequest request)
Parameters
request
SourceRequest
UnregisterSource(SourceRequest)
internal void UnregisterSource(SourceRequest request)
Parameters
request
SourceRequest