This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy at the same URL with .md appended. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

FileWatchResponse Pennington.Infrastructure

How a file-watched service wants FileWatchDispatcher to treat a change.

Fields

Ignore FileWatchResponse
Default: 0
The change is irrelevant; nothing was done.
Recreate FileWatchResponse
Default: 2
Drop the instance; a fresh one is built on the next resolve.
Refreshed FileWatchResponse
Default: 1
The service refreshed its own state in place; keep the instance.

Pennington.Infrastructure.FileWatchResponse

namespace Pennington.Infrastructure;

/// How a file-watched service wants FileWatchDispatcher to treat a change.
public enum FileWatchResponse
{
    /// The change is irrelevant; nothing was done.
    
public static const FileWatchResponse Ignore
; /// Drop the instance; a fresh one is built on the next resolve.
public static const FileWatchResponse Recreate
; /// The service refreshed its own state in place; keep the instance.
public static const FileWatchResponse Refreshed
; }