Exemple #1
0
        /// <summary>
        /// The main method of this MSBuild task which calls the asynchronous execution method and
        /// collates logged errors in order to determine the success of HelixWorkItems
        /// </summary>
        /// <returns>A boolean value indicating the success of HelixWorkItem creation</returns>
        public bool ExecuteTask(
            IProvisioningProfileProvider provisioningProfileProvider,
            IZipArchiveManager zipArchiveManager,
            IFileSystem fileSystem)
        {
            var tasks = AppBundles.Select(bundle => PrepareWorkItem(zipArchiveManager, fileSystem, provisioningProfileProvider, bundle));

            WorkItems = Task.WhenAll(tasks).GetAwaiter().GetResult().Where(wi => wi != null).ToArray();

            return(!Log.HasLoggedErrors);
        }
Exemple #2
0
 /// <summary>
 /// Create work items for XHarness test execution
 /// </summary>
 /// <returns></returns>
 private async Task ExecuteAsync()
 {
     WorkItems = (await Task.WhenAll(AppBundles.Select(PrepareWorkItem))).Where(wi => wi != null).ToArray();
 }
 /// <summary>
 /// Create work items for XHarness test execution
 /// </summary>
 /// <returns></returns>
 private async Task ExecuteAsync()
 {
     DownloadProvisioningProfiles();
     WorkItems = (await Task.WhenAll(AppBundles.Select(PrepareWorkItem))).Where(wi => wi != null).ToArray();
 }