Table of Contents

Interface IHostEnvironment

Namespace
Acuit.Pinpoint.Workstation
Assembly
Acuit.Pinpoint.Workstation.Abstractions.dll

Services for interacting with the host environment.

public interface IHostEnvironment

Properties

ComputerName

Gets the computer name.

string ComputerName { get; }

Property Value

string

Configuration

Gets the host-wide key/value configuration settings.

IConfigurationRoot Configuration { get; }

Property Value

IConfigurationRoot

DataDirectory

Gets the path to the host data directory. This directory will exist and will be in the CommonApplicationData area.

string DataDirectory { get; }

Property Value

string

IsAcuitPinpointEmulated

Gets whether Acuit Pinpoint is being emulated.

bool IsAcuitPinpointEmulated { get; }

Property Value

bool

UserDataDirectory

Gets the path to the host-specific data directory for the current, non-roaming user. This directory will exist and will be in the LocalApplicationData area.

string UserDataDirectory { get; }

Property Value

string

Methods

OpenFolderInFileExplorer(string)

Opens a local folder in File Explorer.

void OpenFolderInFileExplorer(string path)

Parameters

path string

The path to the folder.

Exceptions

ArgumentNullException

path is null.