Files
Umbraco-CMS/src/Umbraco.Core/Deploy/IDeployContext.cs

49 lines
1.5 KiB
C#
Raw Normal View History

2017-07-20 11:21:28 +02:00
using System;
2017-05-12 14:49:44 +02:00
using System.Collections.Generic;
2017-09-15 18:22:19 +02:00
using System.Threading;
2017-05-12 14:49:44 +02:00
namespace Umbraco.Core.Deploy
{
/// <summary>
/// Represents a deployment context.
/// </summary>
public interface IDeployContext
{
/// <summary>
/// Gets the unique identifier of the deployment.
/// </summary>
Guid SessionId { get; }
/// <summary>
/// Gets the file source.
/// </summary>
/// <remarks>The file source is used to obtain files from the source environment.</remarks>
IFileSource FileSource { get; }
/// <summary>
/// Gets the next number in a numerical sequence.
/// </summary>
/// <returns>The next sequence number.</returns>
/// <remarks>Can be used to uniquely number things during a deployment.</remarks>
int NextSeq();
/// <summary>
/// Gets items.
/// </summary>
IDictionary<string, object> Items { get; }
/// <summary>
/// Gets item.
/// </summary>
/// <typeparam name="T">The type of the item.</typeparam>
/// <param name="key">The key of the item.</param>
/// <returns>The item with the specified key and type, if any, else null.</returns>
T Item<T>(string key) where T : class;
2017-09-15 18:22:19 +02:00
///// <summary>
///// Gets the global deployment cancellation token.
///// </summary>
//CancellationToken CancellationToken { get; }
2017-05-12 14:49:44 +02:00
}
2017-07-20 11:21:28 +02:00
}