Shutting down an RO server when using Microsoft.Extensions.Hosting

Hello

These are the samples:
WinForns: WinFormsApp1.zip (4.5 KB)

WPF: WpfApp1.zip (3.7 KB)

For WinForms the main point is to use the IHost to manage application lifetime, including the IAppServerEngine service (the core of a RO SDK server running in your application).

For WPF application IHost is started/stopped in the Application event handlers.

These samples should give you a good start with the UI + RO SDK server mix.

Note: There is also an old-fashioned approach where all RO SDK components are created manually:
WpfApp1.zip (3.6 KB)
With this approach you will have to explicitly create all Remoting SDK infrastructure components.

Hope that helps