forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathILazyInitializer.cs
35 lines (31 loc) · 1.27 KB
/
ILazyInitializer.cs
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
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by AsyncGenerator.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using NHibernate.Engine;
namespace NHibernate.Proxy
{
using System.Threading.Tasks;
using System.Threading;
public partial interface ILazyInitializer
{
/// <summary>
/// Perform an ImmediateLoad of the actual object for the Proxy.
/// </summary>
/// <param name="cancellationToken">A cancellation token that can be used to cancel the work</param>
/// <exception cref="HibernateException">
/// Thrown when the Proxy has no Session or the Session is closed or disconnected.
/// </exception>
Task InitializeAsync(CancellationToken cancellationToken);
/// <summary>
/// Return the underlying persistent object, initializing if necessary.
/// </summary>
/// <param name="cancellationToken">A cancellation token that can be used to cancel the work</param>
/// <returns>The persistent object this proxy is proxying.</returns>
Task<object> GetImplementationAsync(CancellationToken cancellationToken);
}
}