-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIInstrument.cs
More file actions
27 lines (25 loc) · 1.26 KB
/
IInstrument.cs
File metadata and controls
27 lines (25 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// =================================================================================================================================
// Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
// =================================================================================================================================
using System;
namespace RapidField.SolidInstruments.Core
{
/// <summary>
/// Represents a utility with disposable resources and exposes a lazily-loaded concurrency control mechanism.
/// </summary>
public interface IInstrument : IAsyncDisposable, IDisposable
{
/// <summary>
/// Gets a value indicating whether or not the current <see cref="IInstrument" /> is fully occupied, as measured by thread
/// saturation for state-controlling operations.
/// </summary>
/// <remarks>
/// Interrogate this property to determine if the instrument is immediately available to perform an operation that reserves
/// state control. This is useful for cases in which another resource may be utilized to perform the same operation.
/// </remarks>
public Boolean IsBusy
{
get;
}
}
}