C# Класс WorkerRole.RunMe

Показать файл Открыть проект

Открытые методы

Метод Описание
GetAzureRunMeVersion ( ) : string
GetLabel ( ) : string
GetWindowsAzureSDKVersion ( ) : string
GetWorkingDirectory ( ) : string
OnStart ( ) : bool
OnStop ( ) : void
Run ( ) : void
RunMe ( ) : System

Приватные методы

Метод Описание
ConfigureDefaultConnectionLimit ( ) : void

Configures the maximum number of concurrent outbound connections

ConfigureTraceFormat ( ) : void
DoUpdate ( ) : void
EnvironmentVariables ( ProcessStartInfo processStartInfo, string environmentVariables ) : void
ExpandKeywords ( string buffer ) : string

Expands keywords in the buffer to allow configuration strings to be set dynamically at runtime

InstallPackage ( string containerName, string packageName, string workingDirectory ) : void

Download a package from blob storage and unzip it

InstallPackageIfNewer ( bool alwaysInstallPackages, string workingDirectory, string containerName, string packageName ) : void
InstallPackages ( ) : void
IsNewPackage ( string containerName, string packageName, string packageReceiptFile ) : bool

Checks a package in Blob Storage against any previous package receipt to determine whether to reinstall it

KillProcesses ( ) : void
OnTimedEvent ( object source, System.Timers.ElapsedEventArgs e ) : void
RoleEnvironmentChanged ( object sender, RoleEnvironmentChangedEventArgs e ) : void
RoleEnvironmentChanging ( object sender, RoleEnvironmentChangingEventArgs e ) : void
RoleEnvironmentStatusCheck ( object sender, RoleInstanceStatusCheckEventArgs e ) : void
RoleEnvironmentStopping ( object sender, RoleEnvironmentStoppingEventArgs e ) : void
Run ( string workingDirectory, string environmentVariables, string batchFile ) : Process

Runs a batch file or executable and hooks up stdout and stderr

RunCommands ( ) : List
RunCommands ( string commandList ) : List
SetEnvironmentVariable ( ProcessStartInfo startInfo, string variable, string value ) : void
WaitForCommandsExit ( List processes ) : void
WritePackageReceipt ( string receiptFileName ) : void

Creates a package receipt (a simple text file in the temp directory) to record the successful download and installation of a package

Описание методов

GetAzureRunMeVersion() публичный статический Метод

public static GetAzureRunMeVersion ( ) : string
Результат string

GetLabel() публичный Метод

public GetLabel ( ) : string
Результат string

GetWindowsAzureSDKVersion() публичный Метод

public GetWindowsAzureSDKVersion ( ) : string
Результат string

GetWorkingDirectory() публичный Метод

public GetWorkingDirectory ( ) : string
Результат string

OnStart() публичный Метод

public OnStart ( ) : bool
Результат bool

OnStop() публичный Метод

public OnStop ( ) : void
Результат void

Run() публичный Метод

public Run ( ) : void
Результат void

RunMe() публичный Метод

public RunMe ( ) : System
Результат System