in SamplesV1/RunRScriptUsingADFSample/InvokeRScript.cs [20:47]
public IDictionary<string, string> Execute(IEnumerable<LinkedService> linkedServices, IEnumerable<Dataset> datasets, Activity activity, IActivityLogger logger)
{
logger.Write("Executing R with ADF .Net Activity");
AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve;
IDictionary<string, string> extendedProperties = ((DotNetActivity)activity.TypeProperties).ExtendedProperties;
//These file paths are specific to the R script. We pass the file paths to our R script as parameters via the pipeline json
string experimentType;
extendedProperties.TryGetValue("modelType", out experimentType);
string snapShotFile;
extendedProperties.TryGetValue("snapShotFile", out snapShotFile);
string timeSeriesFile;
extendedProperties.TryGetValue("timeSeriesFile", out timeSeriesFile);
string blobPath;
extendedProperties.TryGetValue("blobPath", out blobPath);
string churnTagFile;
extendedProperties.TryGetValue("churnTagFile", out churnTagFile);
string outputFile;
extendedProperties.TryGetValue("outputFile", out outputFile);
logger.Write("Starting Batch Execution Service");
InvokeR(experimentType, snapShotFile, timeSeriesFile, churnTagFile, blobPath, outputFile, logger);
return new Dictionary<string, string>();
}