public IHostedServiceActivity SetCspkgEndpoint(Uri uriEndpoint, XDocument configuration) { if (BuildActivity == null) { BuildActivity = new BuildActivity(this); } ((IBuildActivity)BuildActivity).SetCspkgEndpoint(uriEndpoint, configuration); return(this); }
/// <summary> /// Sets the root path to .ccproj /// </summary> IDefinitionActivity IBuildActivity.SetBuildDirectoryRoot(string directoryName) { if (BuildActivity == null) { BuildActivity = new BuildActivity(this); } ((IBuildActivity)BuildActivity).SetBuildDirectoryRoot(directoryName); BuildActivity.Rebuild(); return(this); }
/// <summary> /// Sets the endpoint for the package instead of doing an upload /// </summary> IHostedServiceActivity IBuildActivity.SetCspkgEndpoint(string uriEndpoint, string cscfgFilePath = null) { if ((uriEndpoint.StartsWith("http://") || uriEndpoint.StartsWith("https://")) && cscfgFilePath == null) { throw new ApplicationException("please define a valid .cscfg file"); } if (BuildActivity == null) { BuildActivity = new BuildActivity(this); } ((IBuildActivity)BuildActivity).SetCspkgEndpoint(uriEndpoint, cscfgFilePath); return(this); }