Request
Namespace: AnyPackage.Provider
Request base class used to send information to the package provider.
public abstract class Request
Properties
DynamicParameters
Gets the package provider dynamic parameters.
public object DynamicParameters { get; internal set; }
Property Value
ParameterSetName
Gets the parameter set name.
public string ParameterSetName { get; }
Property Value
Stopping
Gets if the package provider has been requested to stop.
public bool Stopping { get; }
Property Value
ProviderInfo
Gets the package provider information.
public PackageProviderInfo ProviderInfo { get; internal set; }
Property Value
Methods
ShouldContinue(String, String)
public bool ShouldContinue(string query, string caption)
Parameters
query String
caption String
Returns
ShouldContinue(String, String, Boolean&, Boolean&)
public bool ShouldContinue(string query, string caption, Boolean& yesToAll, Boolean& noToAll)
Parameters
query String
caption String
yesToAll Boolean&
noToAll Boolean&
Returns
ShouldContinue(String, String, Boolean, Boolean&, Boolean&)
public bool ShouldContinue(string query, string caption, bool hasSecurityImpact, Boolean& yesToAll, Boolean& noToAll)
Parameters
query String
caption String
hasSecurityImpact Boolean
yesToAll Boolean&
noToAll Boolean&
Returns
WriteDebug(String)
Write debug information to the debug stream.
public void WriteDebug(string text)
Parameters
text String
Debug information.
WriteInformation(Object, String[])
Route information to the user or host.
public void WriteInformation(object messageData, String[] tags)
Parameters
messageData Object
The object / message data to transmit to the hosting application.
tags String[]
Any tags to be associated with the message data.
These can later be used to filter or separate objects being sent to the host
WriteInformation(InformationRecord)
Write information to the information stream.
public void WriteInformation(InformationRecord informationRecord)
Parameters
informationRecord InformationRecord
Information.
WriteProgress(ProgressRecord)
Write progress information to the progress stream.
public void WriteProgress(ProgressRecord progressRecord)
Parameters
progressRecord ProgressRecord
Progress information.
WriteVerbose(String)
Write verbose information to the verbose stream.
public void WriteVerbose(string text)
Parameters
text String
Verbose message.
WriteWarning(String)
Write warning information to the warning stream.
public void WriteWarning(string text)
Parameters
text String
Warning information.