diff --git a/src/Shmuelie.WinRTServer/ComServer.cs b/src/Shmuelie.WinRTServer/ComServer.cs index 04a9ff9..36b242f 100644 --- a/src/Shmuelie.WinRTServer/ComServer.cs +++ b/src/Shmuelie.WinRTServer/ComServer.cs @@ -16,6 +16,20 @@ namespace Shmuelie.WinRTServer; /// /// An Out of Process COM Server. /// +/// +/// Allows for types to be created using COM activation instead of WinRT activation like . +/// Typical usage is to call from an block, using to not close until it is safe to do so. +/// +/// (); +/// server.Start(); +/// await server.WaitForFirstObjectAsync(); +/// } +/// ]]> +/// +/// /// /// [SupportedOSPlatform("windows6.0.6000")] @@ -197,6 +211,7 @@ private void Factory_InstanceCreated(object? sender, InstanceCreatedEventArgs e) /// /// Starts the server. /// + /// Calling is non-blocking. /// The instance is disposed. public void Start() { diff --git a/src/Shmuelie.WinRTServer/WinRtServer.cs b/src/Shmuelie.WinRTServer/WinRtServer.cs index fb2e35c..971fc31 100644 --- a/src/Shmuelie.WinRTServer/WinRtServer.cs +++ b/src/Shmuelie.WinRTServer/WinRtServer.cs @@ -18,11 +18,28 @@ namespace Shmuelie.WinRTServer; /// /// An Out of Process Windows Runtime Server. /// +/// +/// Allows for types to be created using WinRT activation instead of COM activation like . +/// Typical usage is to call from an block, using to not close until it is safe to do so. +/// +/// (); +/// server.Start(); +/// await server.WaitForFirstObjectAsync(); +/// } +/// ]]> +/// +/// /// /// [SupportedOSPlatform("windows8.0")] public sealed class WinRtServer : IAsyncDisposable { + /// + /// Mapping of Activatable Class IDs to activation factories and their implementation. + /// private readonly Dictionary factories = []; private readonly unsafe DllGetActivationFactory activationFactoryCallbackWrapper; @@ -217,6 +234,7 @@ public bool IsDisposed /// /// Starts the server. /// + /// Calling is non-blocking. public unsafe void Start() { if (IsDisposed)