C# Class NuGet.Services.Operations.OperationsSession

Afficher le fichier Open project: NuGet/NuGet.Operations Class Usage Examples

Méthodes publiques

Свойство Type Description
AppModelEnvironmentVariableName string
CurrentEnvironmentVariableName string

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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 méthode

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
Résultat OperationsSession

Load() public static méthode

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
Résultat OperationsSession

LoadFromEnvironment() public static méthode

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
Résultat OperationsSession

OperationsSession() public méthode

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

SetCurrentEnvironment() public méthode

public SetCurrentEnvironment ( string name ) : void
name string
Résultat void

SetCurrentEnvironment() public méthode

public SetCurrentEnvironment ( string name, bool throwOnFailure ) : void
name string
throwOnFailure bool
Résultat void

this() public méthode

public this ( string environmentName ) : DeploymentEnvironment
environmentName string
Résultat NuGet.Services.Operations.Model.DeploymentEnvironment

Property Details

AppModelEnvironmentVariableName public_oe static_oe property

public static string AppModelEnvironmentVariableName
Résultat string

CurrentEnvironmentVariableName public_oe static_oe property

public static string CurrentEnvironmentVariableName
Résultat string