-
Notifications
You must be signed in to change notification settings - Fork 5
/
DataSetupContext.cs
51 lines (46 loc) · 1.9 KB
/
DataSetupContext.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
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="DataSetupContext.cs" company="Kephas Software SRL">
// Copyright (c) Kephas Software SRL. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// </copyright>
// <summary>
// Implements the data setup context class.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
using Kephas.Services;
namespace Kephas.Data.Setup
{
using System.Collections.Generic;
using Kephas.Services;
/// <summary>
/// A data setup context.
/// </summary>
public class DataSetupContext : Context, IDataSetupContext
{
/// <summary>
/// Initializes a new instance of the <see cref="DataSetupContext"/> class.
/// </summary>
/// <param name="serviceProvider">The injector.</param>
/// <param name="isThreadSafe">Optional. True if is thread safe, false if not.</param>
public DataSetupContext(IServiceProvider serviceProvider, bool isThreadSafe = false)
: base(serviceProvider, isThreadSafe)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="DataSetupContext"/> class.
/// </summary>
/// <param name="parentContext">The parent context.</param>
/// <param name="isThreadSafe">Optional. True if is thread safe, false if not.</param>
public DataSetupContext(IContext parentContext, bool isThreadSafe = false)
: base(parentContext, isThreadSafe)
{
}
/// <summary>
/// Gets or sets the data targets.
/// </summary>
/// <value>
/// The data targets.
/// </value>
public IEnumerable<string>? Targets { get; set; }
}
}