1
// -----------------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation. All rights reserved.
3 // -----------------------------------------------------------------------
5 using System
.ComponentModel
.Composition
.Hosting
;
6 using System
.ComponentModel
.Composition
.Primitives
;
8 namespace System
.ComponentModel
.Composition
11 /// Provides methods for composing <see cref="ComposablePart"/> objects.
13 public interface ICompositionService
16 /// Sets the imports of the specified composable part exactly once and they will not
17 /// ever be recomposed.
19 /// <param name="part">
20 /// The <see cref="ComposablePart"/> to set the imports.
22 /// <exception cref="ArgumentNullException">
23 /// <paramref name="part"/> is <see langword="null"/>.
25 /// <exception cref="CompositionException">
26 /// An error occurred during composition. <see cref="CompositionException.Errors"/> will
27 /// contain a collection of errors that occurred.
29 /// <exception cref="ObjectDisposedException">
30 /// The <see cref="ICompositionService"/> has been disposed of.
32 void SatisfyImportsOnce(ComposablePart part
);