@@ -16,41 +16,26 @@ namespace UiPath.Ipc
1616 public System.Reflection.MethodInfo Method { get; }
1717 public bool NewConnection { get; }
1818 }
19- public abstract class ClientTransport : System.IEquatable<UiPath.Ipc.ClientTransport>
19+ public abstract class ClientTransport : System.IEquatable<UiPath.Ipc.ClientTransport> { }
20+ public class ContractCollection : System.Collections.Generic.IEnumerable<UiPath.Ipc.ContractSettings>, System.Collections.IEnumerable
2021 {
21- protected ClientTransport() { }
22- }
23- public class EndpointCollection : System.Collections.Generic.IEnumerable<UiPath.Ipc.EndpointSettings>, System.Collections.IEnumerable
24- {
25- public EndpointCollection() { }
26- public void Add(System.Type type) { }
27- public void Add(UiPath.Ipc.EndpointSettings endpointSettings) { }
22+ public ContractCollection() { }
23+ public void Add(System.Type contractType) { }
24+ public void Add(UiPath.Ipc.ContractSettings endpointSettings) { }
2825 public void Add(System.Type contractType, object? instance) { }
29- public System.Collections.Generic.IEnumerator<UiPath.Ipc.EndpointSettings> GetEnumerator() { }
30- }
31- public sealed class EndpointNotFoundException : System.ArgumentException
32- {
33- public string EndpointName { get; }
34- public string ServerDebugName { get; }
26+ public System.Collections.Generic.IEnumerator<UiPath.Ipc.ContractSettings> GetEnumerator() { }
3527 }
36- public class EndpointSettings : System.IEquatable<UiPath.Ipc.EndpointSettings>
28+ public sealed class ContractSettings
3729 {
38- public EndpointSettings (System.Type contractType, System.IServiceProvider serviceProvider) { }
39- public EndpointSettings (System.Type contractType, object? serviceInstance = null) { }
30+ public ContractSettings (System.Type contractType, System.IServiceProvider serviceProvider) { }
31+ public ContractSettings (System.Type contractType, object? serviceInstance = null) { }
4032 public System.Func<UiPath.Ipc.CallInfo, System.Threading.CancellationToken, System.Threading.Tasks.Task>? BeforeIncomingCall { get; set; }
41- public System.Type ContractType { get; }
4233 public System.Threading.Tasks.TaskScheduler? Scheduler { get; set; }
43- public object? ServiceInstance { get; }
44- public System.IServiceProvider? ServiceProvider { get; }
45- public void Validate() { }
46- public virtual UiPath.Ipc.EndpointSettings WithServiceProvider(System.IServiceProvider? serviceProvider) { }
4734 }
48- public sealed class EndpointSettings<TContract> : UiPath.Ipc.EndpointSettings, System.IEquatable<UiPath.Ipc.EndpointSettings<TContract>>
49- where TContract : class
35+ public sealed class EndpointNotFoundException : System.ArgumentException
5036 {
51- public EndpointSettings(System.IServiceProvider serviceProvider) { }
52- public EndpointSettings(TContract? serviceInstance = null) { }
53- public override UiPath.Ipc.EndpointSettings WithServiceProvider(System.IServiceProvider? serviceProvider) { }
37+ public string EndpointName { get; }
38+ public string ServerDebugName { get; }
5439 }
5540 public class Error : System.IEquatable<UiPath.Ipc.Error>
5641 {
@@ -94,7 +79,7 @@ namespace UiPath.Ipc
9479 public IpcClient() { }
9580 public System.Func<System.Threading.CancellationToken, System.Threading.Tasks.Task>? BeforeConnect { get; set; }
9681 public System.Func<UiPath.Ipc.CallInfo, System.Threading.CancellationToken, System.Threading.Tasks.Task>? BeforeOutgoingCall { get; set; }
97- public UiPath.Ipc.EndpointCollection ? Callbacks { get; set; }
82+ public UiPath.Ipc.ContractCollection ? Callbacks { get; set; }
9883 public Microsoft.Extensions.Logging.ILogger? Logger { get; init; }
9984 public UiPath.Ipc.ClientTransport Transport { get; init; }
10085 public TProxy GetProxy<TProxy>()
@@ -114,7 +99,7 @@ namespace UiPath.Ipc
11499 [System.Obsolete("Constructors of types with required members are not supported in this version of " +
115100 "your compiler.", true)]
116101 public IpcServer() { }
117- public UiPath.Ipc.EndpointCollection Endpoints { get; init; }
102+ public UiPath.Ipc.ContractCollection Endpoints { get; init; }
118103 public UiPath.Ipc.ServerTransport Transport { get; init; }
119104 public System.Threading.Tasks.ValueTask DisposeAsync() { }
120105 [System.Diagnostics.CodeAnalysis.MemberNotNull(new string[] {
@@ -152,7 +137,6 @@ namespace UiPath.Ipc
152137 }
153138 public abstract class ServerTransport
154139 {
155- protected ServerTransport() { }
156140 public int ConcurrentAccepts { get; set; }
157141 public byte MaxReceivedMessageSizeInMegabytes { get; set; }
158142 }
0 commit comments