-
Notifications
You must be signed in to change notification settings - Fork 934
/
Copy pathIExecutable.cs
64 lines (57 loc) · 2.56 KB
/
IExecutable.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
using System;
using NHibernate.Engine;
namespace NHibernate.Action
{
/// <summary>
/// Delegate representing some process that needs to occur before transaction completion.
/// </summary>
/// <remarks>
/// NH specific: C# does not support dynamic interface proxies so a delegate is used in
/// place of the Hibernate interface (see Action/BeforeTransactionCompletionProcess). The
/// delegate omits the <see cref="ISessionImplementor" /> parameter as it is not used.
/// </remarks>
//Since v5.2
[Obsolete("This delegate is not used and will be removed in a future version.")]
public delegate void BeforeTransactionCompletionProcessDelegate();
/// <summary>
/// Delegate representing some process that needs to occur after transaction completion.
/// </summary>
/// <param name="success"> Did the transaction complete successfully? True means it did.</param>
/// <remarks>
/// NH specific: C# does not support dynamic interface proxies so a delegate is used in
/// place of the Hibernate interface (see Action/AfterTransactionCompletionProcess). The
/// delegate omits the <see cref="ISessionImplementor" /> parameter as it is not used.
/// </remarks>
//Since v5.2
[Obsolete("This delegate is not used and will be removed in a future version.")]
public delegate void AfterTransactionCompletionProcessDelegate(bool success);
/// <summary>
/// An operation which may be scheduled for later execution.
/// Usually, the operation is a database insert/update/delete,
/// together with required second-level cache management.
/// </summary>
//6.0 TODO: Consider refactoring towards using an abstract class
public partial interface IExecutable
{
/// <summary>
/// What spaces (tables) are affected by this action?
/// </summary>
string[] PropertySpaces { get; }
/// <summary> Called before executing any actions</summary>
void BeforeExecutions();
/// <summary> Execute this action</summary>
void Execute();
/// <summary>
/// Get the before-transaction-completion process, if any, for this action.
/// </summary>
//Since v5.2
[Obsolete("This property is not used and will be removed in a future version. Please implement IAsyncExecutable.")]
BeforeTransactionCompletionProcessDelegate BeforeTransactionCompletionProcess { get; }
/// <summary>
/// Get the after-transaction-completion process, if any, for this action.
/// </summary>
//Since v5.2
[Obsolete("This property is not used and will be removed in a future version. Please implement IAsyncExecutable.")]
AfterTransactionCompletionProcessDelegate AfterTransactionCompletionProcess { get; }
}
}