C# Класс Kudu.Core.Deployment.DeploymentManager

Наследование: IDeploymentManager
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DeploymentScriptFileName string

Private Properties

Свойство Тип Описание
Build System.Threading.Tasks.Task
CleanBuild void
EnumerateResults IEnumerable
FailDeployment void
FinishDeployment void
GenerateTemporaryId string
GetActiveDeploymentManifestPath string
GetDeploymentManifestPath string
GetLogPath string
GetLoggerForFile IDetailedLogger
GetOrCreateStatusFile IDeploymentStatusFile
GetOutputPath string
GetPurgeFailedDeployments IEnumerable
GetPurgeObsoleteDeployments IEnumerable
GetPurgeTemporaryDeployments IEnumerable
GetResult DeployResult
GetRoot string
IsActive bool
MarkStatusComplete void
PreDeployment void
PurgeAndGetDeployments IEnumerable
PurgeDeployments IEnumerable
TrimId string
TryGetVsProjectId string
TryTouchWebConfig void
VerifyDeployment IDeploymentStatusFile

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

Метод Описание
CreateTemporaryChangeSet ( string authorName = null, string authorEmail = null, string message = null ) : ChangeSet
CreateTemporaryDeployment ( string statusText, ChangeSet &tempChangeSet, ChangeSet changeSet = null, string deployedBy = null ) : IDisposable
Delete ( string id ) : void
DeployAsync ( IRepository repository, ChangeSet changeSet, string deployer, bool clean, bool needFileUpdate = true ) : Task
DeploymentManager ( ISiteBuilderFactory builderFactory, IEnvironment environment, ITraceFactory traceFactory, IAnalytics analytics, IDeploymentSettingsManager settings, IDeploymentStatusManager status, IOperationLock deploymentLock, ILogger globalLogger, IWebHooksManager hooksManager, IFunctionManager functionManager ) : System
GetCachedDeploymentScriptPath ( IEnvironment environment ) : string
GetDeploymentScriptContent ( ) : string

Prepare a directory with the deployment script and .deployment file.

GetLogEntries ( string id ) : IEnumerable
GetLogEntryDetails ( string id, string entryId ) : IEnumerable
GetLogger ( string id ) : ILogger
GetResult ( string id ) : DeployResult
GetResults ( ) : IEnumerable

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

Метод Описание
Build ( Kudu.Core.SourceControl.ChangeSet changeSet, ITracer tracer, IDisposable deployStep, IFileFinder fileFinder, DeploymentAnalytics deploymentAnalytics ) : System.Threading.Tasks.Task

Builds and deploys a particular changeset. Puts all build artifacts in a deployments/{id}

CleanBuild ( ITracer tracer, string buildTempPath ) : void
EnumerateResults ( ) : IEnumerable
FailDeployment ( ITracer tracer, IDisposable deployStep, DeploymentAnalytics deploymentAnalytics, Exception ex ) : void
FinishDeployment ( string id, IDisposable deployStep ) : void

Runs post deployment steps. - Marks the active deployment - Sets the complete flag

GenerateTemporaryId ( int lenght = 8 ) : string
GetActiveDeploymentManifestPath ( ) : string
GetDeploymentManifestPath ( string id ) : string
GetLogPath ( string id, bool ensureDirectory = true ) : string

This function handles getting the path for the log file. If 'log.xml' exists then use that which will use XmlLogger, this is to support existing log files else use 'log.log' which will use TextLogger. Moving forward deployment will always use text logger. The logic to get the right logger is in GetLoggerForFile()

GetLoggerForFile ( string logPath ) : IDetailedLogger

use XmlLogger if the file ends with .xml Otherwise use StructuredTextLogger

GetOrCreateStatusFile ( ChangeSet changeSet, ITracer tracer, string deployer ) : IDeploymentStatusFile
GetOutputPath ( IEnvironment environment, IDeploymentSettingsManager perDeploymentSettings ) : string
GetPurgeFailedDeployments ( IEnumerable results ) : IEnumerable
GetPurgeObsoleteDeployments ( IEnumerable results ) : IEnumerable
GetPurgeTemporaryDeployments ( IEnumerable results ) : IEnumerable
GetResult ( string id, string activeDeploymentId, bool isDeploying ) : DeployResult
GetRoot ( string id, bool ensureDirectory = true ) : string
IsActive ( string id ) : bool
MarkStatusComplete ( IDeploymentStatusFile status, bool success ) : void
PreDeployment ( ITracer tracer ) : void
PurgeAndGetDeployments ( ) : IEnumerable
PurgeDeployments ( IEnumerable results ) : IEnumerable
TrimId ( string id ) : string
TryGetVsProjectId ( DeploymentContext context ) : string
TryTouchWebConfig ( DeploymentContext context ) : void
VerifyDeployment ( string id, bool isDeploying ) : IDeploymentStatusFile

Ensure the deployment is in a valid state.

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

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

public static CreateTemporaryChangeSet ( string authorName = null, string authorEmail = null, string message = null ) : ChangeSet
authorName string
authorEmail string
message string
Результат ChangeSet

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

public CreateTemporaryDeployment ( string statusText, ChangeSet &tempChangeSet, ChangeSet changeSet = null, string deployedBy = null ) : IDisposable
statusText string
tempChangeSet ChangeSet
changeSet ChangeSet
deployedBy string
Результат IDisposable

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

public Delete ( string id ) : void
id string
Результат void

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

public DeployAsync ( IRepository repository, ChangeSet changeSet, string deployer, bool clean, bool needFileUpdate = true ) : Task
repository IRepository
changeSet ChangeSet
deployer string
clean bool
needFileUpdate bool
Результат Task

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

public DeploymentManager ( ISiteBuilderFactory builderFactory, IEnvironment environment, ITraceFactory traceFactory, IAnalytics analytics, IDeploymentSettingsManager settings, IDeploymentStatusManager status, IOperationLock deploymentLock, ILogger globalLogger, IWebHooksManager hooksManager, IFunctionManager functionManager ) : System
builderFactory ISiteBuilderFactory
environment IEnvironment
traceFactory ITraceFactory
analytics IAnalytics
settings IDeploymentSettingsManager
status IDeploymentStatusManager
deploymentLock IOperationLock
globalLogger ILogger
hooksManager IWebHooksManager
functionManager IFunctionManager
Результат System

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

public static GetCachedDeploymentScriptPath ( IEnvironment environment ) : string
environment IEnvironment
Результат string

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

Prepare a directory with the deployment script and .deployment file.
public GetDeploymentScriptContent ( ) : string
Результат string

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

public GetLogEntries ( string id ) : IEnumerable
id string
Результат IEnumerable

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

public GetLogEntryDetails ( string id, string entryId ) : IEnumerable
id string
entryId string
Результат IEnumerable

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

public GetLogger ( string id ) : ILogger
id string
Результат ILogger

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

public GetResult ( string id ) : DeployResult
id string
Результат DeployResult

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

public GetResults ( ) : IEnumerable
Результат IEnumerable

Описание свойств

DeploymentScriptFileName публичное статическое свойство

public static string DeploymentScriptFileName
Результат string