-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIReferenceManager.cs
More file actions
37 lines (34 loc) · 1.38 KB
/
IReferenceManager.cs
File metadata and controls
37 lines (34 loc) · 1.38 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
28
29
30
31
32
33
34
35
36
37
// =================================================================================================================================
// 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>
/// Tracks a collection of related object references and manages disposal of them.
/// </summary>
public interface IReferenceManager : IAsyncDisposable, IDisposable
{
/// <summary>
/// Instructs the current <see cref="IReferenceManager" /> to manage the specified object.
/// </summary>
/// <typeparam name="T">
/// The type of the managed object.
/// </typeparam>
/// <param name="reference">
/// The managed object.
/// </param>
/// <exception cref="ObjectDisposedException">
/// The object is disposed.
/// </exception>
public void AddObject<T>(T reference)
where T : class;
/// <summary>
/// Gets the number of objects that are managed by the current <see cref="IReferenceManager" />.
/// </summary>
public Int32 ObjectCount
{
get;
}
}
}