forked from CommunityToolkit/Datasync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEntityDatasyncOptions.cs
33 lines (27 loc) · 1.07 KB
/
EntityDatasyncOptions.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
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using CommunityToolkit.Datasync.Client.Query.Linq;
namespace CommunityToolkit.Datasync.Client.Offline.Models;
/// <summary>
/// The offline options for a single entity.
/// </summary>
internal class EntityDatasyncOptions
{
/// <summary>
/// The conflict resolver for the entity.
/// </summary>
internal IConflictResolver? ConflictResolver { get; init; }
/// <summary>
/// The endpoint for the entity type.
/// </summary>
public required Uri Endpoint { get; init; }
/// <summary>
/// The <see cref="HttpClient"/> pre-configured for communicating with the datasync service.
/// </summary>
public required HttpClient HttpClient { get; init; }
/// <summary>
/// The query description to use - set to null for "all entities in the data set"
/// </summary>
internal required QueryDescription QueryDescription { get; init; }
}