-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIObjectBuilder.cs
More file actions
29 lines (27 loc) · 1.28 KB
/
IObjectBuilder.cs
File metadata and controls
29 lines (27 loc) · 1.28 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
// =================================================================================================================================
// 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 an object that configures and produces new <typeparamref name="TResult" /> instances.
/// </summary>
/// <typeparam name="TResult">
/// The output type that results from the invocation of <see cref="IObjectBuilder{TResult}.ToResult" />.
/// </typeparam>
public interface IObjectBuilder<TResult> : IAsyncDisposable, IDisposable
where TResult : class
{
/// <summary>
/// Produces the configured <typeparamref name="TResult" /> instance.
/// </summary>
/// <returns>
/// The configured <typeparamref name="TResult" /> instance.
/// </returns>
/// <exception cref="ObjectBuilderException">
/// An exception was raised during finalization of the builder.
/// </exception>
public TResult ToResult();
}
}