-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSignalRAdapterProxyOptions.cs
41 lines (33 loc) · 1.4 KB
/
SignalRAdapterProxyOptions.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
using System;
using System.ComponentModel.DataAnnotations;
using DataCore.Adapter.AspNetCore.SignalR.Client;
using DataCore.Adapter.Extensions;
using DataCore.Adapter.Proxy;
namespace DataCore.Adapter.AspNetCore.SignalR.Proxy {
/// <summary>
/// Options for creating a <see cref="SignalRAdapterProxy"/>.
/// </summary>
public class SignalRAdapterProxyOptions : AdapterOptions {
/// <summary>
/// The ID of the remote adapter.
/// </summary>
[Required]
public string RemoteId { get; set; } = default!;
/// <summary>
/// The SignalR compatibility level to use.
/// </summary>
[Obsolete("ASP.NET Core 2.x is no longer supported", false)]
public CompatibilityLevel CompatibilityLevel { get; set; } = CompatibilityLevel.Latest;
/// <summary>
/// A factory method that creates hub connections on behalf of the proxy.
/// </summary>
[Required]
public ConnectionFactory ConnectionFactory { get; set; } = default!;
/// <summary>
/// A factory method that the proxy calls to request a concrete implementation of an
/// extension feature.
/// </summary>
[Obsolete(ExtensionFeatureConstants.ObsoleteMessage, ExtensionFeatureConstants.ObsoleteError)]
public ExtensionFeatureFactory<SignalRAdapterProxy>? ExtensionFeatureFactory { get; set; }
}
}