Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Data Factory Samples

Copy from FTP to AzureStorage

public class CopyWithGenericPathWorkflow : IWorkflow<CopyWithGenericPathWorkflowData>
{
	public void Build(IWorkflowBuilder<CopyWithGenericPathWorkflowData> builder)
	{
		builder
			.UseDefaultErrorBehavior(WorkflowCore.Models.WorkflowErrorHandling.Terminate)
			.StartWith<Tasks.CopyTask>()
				.Input(task => task.SourcePath, data => data.SourcePath)
				.Input(task => task.DestinationPath, data => data.DestinationPath);
				
	}
}

public class CopyWithGenericPathWorkflowData
{
	public DataPath SourcePath { get; set; }

	public DataPath DestinationPath { get; set; }
}

var datas = new CopyWithGenericPathWorkflowData()
{
	SourcePath = new GenericDataPath()
	{
		LinkedServiceName = "MyFtpServer",
		PathProperties = new
		{
			folderPath = "in",
			fileName = "*.mpg "
		},
		ActivityProperties = new
		{
			recursive = false
		}
	},
	DestinationPath = new GenericDataPath()
	{
		LinkedServiceName = "MyAzureStorage",
		PathProperties = new
		{
			folderPath = "outfolder"
		}
	}
};