Exemple #1
0
 /// <summary>
 ///     Returns the export definitions that match the constraint defined by the specified definition.
 /// </summary>
 /// <param name="definition">
 ///     The <see cref="ImportDefinition"/> that defines the conditions of the
 ///     <see cref="ExportDefinition"/> objects to return.
 /// </param>
 /// <returns>
 ///     An <see cref="IEnumerable{T}"/> of <see cref="Tuple{T1, T2}"/> containing the
 ///     <see cref="ExportDefinition"/> objects and their associated
 ///     <see cref="ComposablePartDefinition"/> for objects that match the constraint defined
 ///     by <paramref name="definition"/>.
 /// </returns>
 /// <exception cref="ArgumentNullException">
 ///     <paramref name="definition"/> is <see langword="null"/>.
 /// </exception>
 /// <exception cref="ObjectDisposedException">
 ///     The <see cref="ComposablePartCatalog"/> has been disposed of.
 /// </exception>
 /// <remarks>
 ///     <note type="inheritinfo">
 ///         Overriders of this property should never return <see langword="null"/>, if no
 ///         <see cref="ExportDefinition"/> match the conditions defined by
 ///         <paramref name="definition"/>, return an empty <see cref="IEnumerable{T}"/>.
 ///     </note>
 /// </remarks>
 public override IEnumerable <Tuple <ComposablePartDefinition, ExportDefinition> > GetExports(ImportDefinition definition)
 {
     return(InnerCatalog.GetExports(definition));
 }
Exemple #2
0
 public override IEnumerator <ComposablePartDefinition> GetEnumerator()
 {
     return(InnerCatalog.GetEnumerator());
 }
 public Task Realize()
 {
     return(InnerCatalog.Realize());
 }