Table of Contents

Interface IDesktopSession

Namespace
VpnHood.AppUi.Hosting.Desktop.Platform
Assembly
VpnHood.AppUi.Hosting.Desktop.dll

Defines the desktop session a launch runs in, as the window's single instance asks it: a person has a window in each session, and a launch that finds it open lets it come forward.

public interface IDesktopSession

Properties

IsSandboxed

Gets a value indicating whether the launch runs in Windows' sandbox, an AppContainer, which keeps the window's pipe in the app's own namespace.

bool IsSandboxed { get; }

Property Value

bool

Name

Gets what tells one person's sessions apart; it is empty where there is none to tell, and the person then has one window.

string Name { get; }

Property Value

string

Methods

HandForegroundTo(NamedPipeClientStream)

Tries to let the process at the pipe's far end bring its window forward, where the platform supports it.

void HandForegroundTo(NamedPipeClientStream window)

Parameters

window NamedPipeClientStream

The pipe to the running window.