blob: f0297c6cc215978094e2158550b59c2cc3c01263 (
plain)
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
|
namespace LibGit2Sharp
{
/// <summary>
/// Can be used to reference the <see cref="IRepository" /> from which
/// an instance was created.
/// <para>
/// While convenient in some situations (e.g. Checkout branch bound to UI element),
/// it is important to ensure instances created from an <see cref="IRepository" />
/// are not used after it is disposed.
/// </para>
/// <para>
/// It's generally better to create <see cref="IRepository" /> and dependant instances
/// on demand, with a short lifespan.
/// </para>
/// </summary>
public interface IBelongToARepository
{
/// <summary>
/// The <see cref="IRepository" /> from which this instance was created.
/// <para>
/// The returned value should not be disposed.
/// </para>
/// </summary>
IRepository Repository { get; }
}
}
|