Interface IDeployContext
Represents a deployment context.
Namespace: Umbraco.Cms.Core.Deploy
Assembly: Umbraco.Core.dll
Syntax
public interface IDeployContext
  Properties
View SourceFileSource
Gets the file source.
Declaration
IFileSource FileSource { get; }
  Property Value
| Type | Description | 
|---|---|
| IFileSource | 
Remarks
The file source is used to obtain files from the source environment.
Items
Gets items.
Declaration
IDictionary<string, object> Items { get; }
  Property Value
| Type | Description | 
|---|---|
| IDictionary<System.String, System.Object> | 
SessionId
Gets the unique identifier of the deployment.
Declaration
Guid SessionId { get; }
  Property Value
| Type | Description | 
|---|---|
| Guid | 
Methods
View SourceItem<T>(String)
Gets item.
Declaration
T Item<T>(string key)
    where T : class
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | key | The key of the item.  | 
      
Returns
| Type | Description | 
|---|---|
| T | The item with the specified key and type, if any, else null.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| T | The type of the item.  | 
      
NextSeq()
Gets the next number in a numerical sequence.
Declaration
int NextSeq()
  Returns
| Type | Description | 
|---|---|
| System.Int32 | The next sequence number.  | 
      
Remarks
Can be used to uniquely number things during a deployment.