Cocktail.MefCompositionProvider.AddXapAsync C# (CSharp) Méthode

AddXapAsync() public méthode

Asynchronously downloads a XAP file and adds all exported parts to the catalog.
public AddXapAsync ( string relativeUri ) : Task
relativeUri string The relative URI for the XAP file to be downloaded.
Résultat Task
        public Task AddXapAsync(string relativeUri)
        {
            XapDownloadOperation operation;
            if (_xapDownloadOperations.TryGetValue(relativeUri, out operation) && !operation.Task.IsFaulted)
                return operation.Task;

            operation = _xapDownloadOperations[relativeUri] = new XapDownloadOperation(relativeUri, this);
            return operation.Task;
        }
    }