C# Class NuGet.Services.Operations.OperationsSession

Exibir arquivo Open project: NuGet/NuGet.Operations Class Usage Examples

Public Properties

Property Type Description
AppModelEnvironmentVariableName string
CurrentEnvironmentVariableName string

Private Properties

Property Type Description

Public Methods

Method Description
Load ( string serviceModel ) : OperationsSession

Loads an operations session using the ServiceModel file located at the specified path

Load ( string serviceModel, string azureTokenStore ) : OperationsSession

Loads an operations session using the ServiceModel file located at the specified path

LoadFromEnvironment ( ) : OperationsSession

Loads an operations session using the current value of the NUGET_APP_MODEL environment variable, if present

OperationsSession ( AppModel model, AzureTokenManager azureTokens ) : System
SetCurrentEnvironment ( string name ) : void
SetCurrentEnvironment ( string name, bool throwOnFailure ) : void
this ( string environmentName ) : DeploymentEnvironment

Method Details

Load() public static method

Loads an operations session using the ServiceModel file located at the specified path
public static Load ( string serviceModel ) : OperationsSession
serviceModel string The path to the service model file
return OperationsSession

Load() public static method

Loads an operations session using the ServiceModel file located at the specified path
public static Load ( string serviceModel, string azureTokenStore ) : OperationsSession
serviceModel string The path to the service model file
azureTokenStore string
return OperationsSession

LoadFromEnvironment() public static method

Loads an operations session using the current value of the NUGET_APP_MODEL environment variable, if present
The NUGET_APP_MODEL environment variable is empty or refers to a directory that does not exist
public static LoadFromEnvironment ( ) : OperationsSession
return OperationsSession

OperationsSession() public method

public OperationsSession ( AppModel model, AzureTokenManager azureTokens ) : System
model NuGet.Services.Operations.Model.AppModel
azureTokens AzureTokenManager
return System

SetCurrentEnvironment() public method

public SetCurrentEnvironment ( string name ) : void
name string
return void

SetCurrentEnvironment() public method

public SetCurrentEnvironment ( string name, bool throwOnFailure ) : void
name string
throwOnFailure bool
return void

this() public method

public this ( string environmentName ) : DeploymentEnvironment
environmentName string
return NuGet.Services.Operations.Model.DeploymentEnvironment

Property Details

AppModelEnvironmentVariableName public_oe static_oe property

public static string AppModelEnvironmentVariableName
return string

CurrentEnvironmentVariableName public_oe static_oe property

public static string CurrentEnvironmentVariableName
return string