using System; using System.Collections.Generic; using System.Threading; namespace Umbraco.Core.Deploy { /// /// Represents a deployment context. /// public interface IDeployContext { /// /// Gets the unique identifier of the deployment. /// Guid SessionId { get; } /// /// Gets the file source. /// /// The file source is used to obtain files from the source environment. IFileSource FileSource { get; } /// /// Gets the next number in a numerical sequence. /// /// The next sequence number. /// Can be used to uniquely number things during a deployment. int NextSeq(); /// /// Gets items. /// IDictionary Items { get; } /// /// Gets item. /// /// The type of the item. /// The key of the item. /// The item with the specified key and type, if any, else null. T Item(string key) where T : class; ///// ///// Gets the global deployment cancellation token. ///// //CancellationToken CancellationToken { get; } } }