Info
Version: | 1.0.4.4 |
Author(s): | daosul |
Last Update: | Thursday, April 13, 2017 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/ADFCustomActivityRunner |
Install
Install-Package ADFCustomActivityRunner
dotnet add package ADFCustomActivityRunner
paket add ADFCustomActivityRunner
ADFCustomActivityRunner Download (Unzip the "nupkg" after downloading)
Dependencies
- ADFSecurePublish(>= 1.0.1.1)
- Hyak.Common(>= 1.0.2)
- Microsoft.Azure.Common(>= 2.0.4)
- Microsoft.Azure.Common.Dependencies(>= 1.0.0)
- Microsoft.Azure.KeyVault(>= 1.0.0)
- Microsoft.Azure.KeyVault.Core(>= 1.0.0)
- Microsoft.Azure.Management.DataFactories(>= 4.11.0)
- Microsoft.Bcl(>= 1.1.9)
- Microsoft.Bcl.Async(>= 1.0.168)
- Microsoft.Bcl.Build(>= 1.0.14)
- Microsoft.Data.Edm(>= 5.8.2)
- Microsoft.Data.OData(>= 5.8.2)
- Microsoft.Data.Services.Client(>= 5.8.2)
- Microsoft.IdentityModel.Clients.ActiveDirectory(>= 3.12.0)
- Microsoft.Net.Http(>= 2.2.22)
- Microsoft.WindowsAzure.ConfigurationManager(>= 1.8.0)
- Newtonsoft.Json(>= 9.0.1)
- Newtonsoft.Json.Schema(>= 2.0.7)
- NUnit(>= 2.6.4)
- System.ComponentModel.EventBasedAsync(>= 4.0.11)
- System.Dynamic.Runtime(>= 4.0.0)
- System.Linq.Queryable(>= 4.0.0)
- System.Net.Requests(>= 4.0.11)
- System.Spatial(>= 5.8.2)
- WindowsAzure.Storage(>= 4.3.0)
Tags
You specify the location of the pipeline which your custom activity is run from and the name of the activity in the pipeline. The activity is then de-serialized into an object which you can use to easily debug your custom activity in the context of the pipeline it is found in. This package comes with a base class which you inherit instead of implementing IDotNetActivity. This abstract bass class is called CustomActivityBase, it implements IDotNetActivity and has a number of methods that simplify getting information from the ADF Json files.
How to use: 1. Inherit from the abstract bass class called CustomActivityBase. 2. Implement the method RunActivity.
This method calls the execute method internally. The arguments for this method are exposed as public properties on the base class: LinkedServices, Datasets, Activity, and Logger. 3. Add the CustomActivity attribute to the RunActivity method and specify the relative location from the custom activity project to the pipeline file and the name of the actviity you wish to target.
Optionally the name of the deployment config file to use e.g. [CustomActivity(ActivityName = "KickOffSproc", PipelineLocation = @"..\DataFactoryApp\PipelineBlobSample.json", DeployConfig = "Dev.json")] 4. Run the custom activity as if it were a unit test.