Show / Hide Table of Contents

Class FileSessionWatcher

Create file system watchers for SSN siles

Inheritance
System.Object
FileSessionWatcher
Namespace: MESL.SqlRace.Domain
Assembly: MESL.SqlRace.Domain.dll
Syntax
public sealed class FileSessionWatcher : Object

Methods

AddWatchPath(String, Boolean, Boolean)

Adds a path to index and watch for subsequent changes.

Declaration
public void AddWatchPath(string path, bool includeSubdirectories, bool processAssociated)
Parameters
Type Name Description
System.String path

The path to the location to index and watch.

System.Boolean includeSubdirectories

Include subdirectories when watching the directory.

System.Boolean processAssociated
Exceptions
Type Condition
System.ArgumentException

Thrown when path does not exist or cannot be accessed. Will also thrown when same path is attempted to added when it is already being watched.

CreateFileSessionWatcher(String)

Creates a new instance of the FileSessionManager.

Declaration
public static FileSessionWatcher CreateFileSessionWatcher(string connectionString)
Parameters
Type Name Description
System.String connectionString

A connection string to store the indexed Sessions.

Returns
Type Description
FileSessionWatcher

A new FileSessionManager object.

RemovePath(String)

Removes a path that is being watched.

Declaration
public void RemovePath(string path)
Parameters
Type Name Description
System.String path

The path to remove.

Back to top Generated by DocFX