Compartir a través de


Module Class

Definition

A class that contains the module-common code and data.

public class Module
type Module = class
Public Class Module
Inheritance
Module

Fields

_handler
_useProxy
_webProxy
Profile

The currently selected profile.

Properties

ArgumentCompleter

Gets completion data for azure specific fields

ClientAPI

The instance of the Client API

EventListener

A delegate that gets called for each signalled event

GetParameterValue

The delegate to call to get parameter data from a common module.

GetTelemetryId

The delegate to get the telemetry Id.

GetTelemetryInfo

The delegate to get the telemetry info.

Instance

the singleton of this module class

Name

The Name of this module

OnModuleLoad

The delegate to call when this module is loaded (supporting a commmon module).

OnNewRequest

The delegate to call before each new request (supporting a commmon module).

ProfileName

The name of the currently selected Azure profile

ResourceId

The ResourceID for this module (azure arm).

SanitizeOutput

The delegate to call in WriteObject to sanitize the output object.

Telemetry

The delegate for creating a telemetry.

Methods

CreatePipeline(InvocationInfo, String, String, String, IDictionary<String,Object>)

Creates an instance of the HttpPipeline for each call.

GetParameter(InvocationInfo, String, String)

Gets parameters from a common module.

Init()

Initialization steps performed after the module is loaded.

SetProxyConfiguration(Uri, PSCredential, Boolean)
Signal(String, CancellationToken, Func<EventArgs>, Func<String, CancellationToken,Func<EventArgs>,Task>, InvocationInfo, String, String, String, Exception)

Called to dispatch events to the common module listener

Applies to