예제 #1
0
 /// <summary>
 /// Add a <see cref="ResourceInfo"/> to the collection of required resources of this artifact.
 /// </summary>
 /// <param name="resourceType">the required resource type</param>
 /// <param name="resourceName">the required resource name</param>
 public void AddRequiredResource(string resourceType, string resourceName)
 {
     ResourceInfo resourceInfo = new ResourceInfo
     {
         ResourceType = resourceType,
         ResourceName = resourceName
     };
     RequiredResources.Add(resourceInfo);
 }
예제 #2
0
 /// <summary>
 /// Add a <see cref="ResourceInfo"/> instance to the
 /// <see cref="TransformationResult"/> of the transformation which is executing. 
 /// </summary>
 /// <param name="resourceInfo"></param>
 public void AddResourceInfoToTransformationResult(ResourceInfo resourceInfo)
 {
     CurrentTransformationResult.RequiredResources.Add(resourceInfo);
 }
예제 #3
0
 /// <summary>
 /// Add a resource dependency
 /// </summary>
 /// <param name="name"></param>
 /// <param name="type"></param>
 /// <param name="externalUrl"></param>
 /// <returns></returns>
 public ResourceInfo AddResourceDependency(string name, string type, string externalUrl)
 {
     ResourceInfo retval = new ResourceInfo()
     {
         ResourceName = name,
         ResourceType = type,
         ExternalUrl = externalUrl
     };
     ResourceDependencies.Add(retval);
     return retval;
 }
예제 #4
0
 /// <summary>
 /// Add a <see cref="ResourceInfo"/>  describing a resource required for this production project build.
 /// </summary>
 /// <param name="resource"></param>
 public void AddRequiredResource(ResourceInfo resource)
 {
     if (RequiredResources.ContainsKey(resource.ResourceKey)) return;
     RequiredResources.Add(resource.ResourceKey, resource);
 }