Class CopyFileTask
Copies a file into an IDirectory
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Snowflake.Installation.Tasks
Assembly: Snowflake.Framework.dll
Syntax
public sealed class CopyFileTask : AsyncInstallTask<IFile>
Constructors
CopyFileTask(TaskResult<FileInfo>, IIndelibleDirectory)
Describe a file copy with the given source file and the target directory. The resultant file will have the same file name as the source.
Declaration
public CopyFileTask(TaskResult<FileInfo> source, IIndelibleDirectory destinationDirectory)
Parameters
Type | Name | Description |
---|---|---|
Task |
source | The source file. |
IIndelible |
destinationDirectory | The target directory. |
Properties
TaskName
Declaration
protected override string TaskName { get; }
Property Value
Type | Description |
---|---|
System. |
Overrides
Snowflake.Installation.AsyncInstallTask<Snowflake.Filesystem.IFile>.TaskName
Methods
CreateFailureDescription(AggregateException)
Declaration
protected override ValueTask<string> CreateFailureDescription(AggregateException _)
Parameters
Type | Name | Description |
---|---|---|
System. |
_ |
Returns
Type | Description |
---|---|
System. |
Overrides
Snowflake.Installation.AsyncInstallTask<Snowflake.Filesystem.IFile>.CreateFailureDescription(System.AggregateException)
CreateSuccessDescription()
Declaration
protected override ValueTask<string> CreateSuccessDescription()
Returns
Type | Description |
---|---|
System. |
Overrides
Snowflake.Installation.AsyncInstallTask<Snowflake.Filesystem.IFile>.CreateSuccessDescription()
ExecuteOnce()
Declaration
protected override Task<IFile> ExecuteOnce()
Returns
Type | Description |
---|---|
System. |
Overrides
Snowflake.Installation.AsyncInstallTask<Snowflake.Filesystem.IFile>.ExecuteOnce()