Cocktail.MefCompositionProvider.AddXapAsync C# (CSharp) Method

AddXapAsync() public method

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.
return 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;
        }
    }