Skip to content

Commit 9f3573b

Browse files
rename Endpoint.. to Contract.. (..Collection, ..Settings)
- other simplifications
1 parent af72ff8 commit 9f3573b

File tree

1 file changed

+13
-26
lines changed

1 file changed

+13
-26
lines changed

UiPath.Ipc.net6.0-windows.received.txt

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -16,41 +16,29 @@ 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() { }
22+
public ContractCollection() { }
2623
public void Add(System.Type type) { }
27-
public void Add(UiPath.Ipc.EndpointSettings endpointSettings) { }
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 : System.IEquatable<UiPath.Ipc.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; }
4133
public System.Type ContractType { get; }
4234
public System.Threading.Tasks.TaskScheduler? Scheduler { get; set; }
4335
public object? ServiceInstance { get; }
4436
public System.IServiceProvider? ServiceProvider { get; }
45-
public void Validate() { }
46-
public virtual UiPath.Ipc.EndpointSettings WithServiceProvider(System.IServiceProvider? serviceProvider) { }
4737
}
48-
public sealed class EndpointSettings<TContract> : UiPath.Ipc.EndpointSettings, System.IEquatable<UiPath.Ipc.EndpointSettings<TContract>>
49-
where TContract : class
38+
public sealed class EndpointNotFoundException : System.ArgumentException
5039
{
51-
public EndpointSettings(System.IServiceProvider serviceProvider) { }
52-
public EndpointSettings(TContract? serviceInstance = null) { }
53-
public override UiPath.Ipc.EndpointSettings WithServiceProvider(System.IServiceProvider? serviceProvider) { }
40+
public string EndpointName { get; }
41+
public string ServerDebugName { get; }
5442
}
5543
public class Error : System.IEquatable<UiPath.Ipc.Error>
5644
{
@@ -94,7 +82,7 @@ namespace UiPath.Ipc
9482
public IpcClient() { }
9583
public System.Func<System.Threading.CancellationToken, System.Threading.Tasks.Task>? BeforeConnect { get; set; }
9684
public System.Func<UiPath.Ipc.CallInfo, System.Threading.CancellationToken, System.Threading.Tasks.Task>? BeforeOutgoingCall { get; set; }
97-
public UiPath.Ipc.EndpointCollection? Callbacks { get; set; }
85+
public UiPath.Ipc.ContractCollection? Callbacks { get; set; }
9886
public Microsoft.Extensions.Logging.ILogger? Logger { get; init; }
9987
public UiPath.Ipc.ClientTransport Transport { get; init; }
10088
public TProxy GetProxy<TProxy>()
@@ -114,7 +102,7 @@ namespace UiPath.Ipc
114102
[System.Obsolete("Constructors of types with required members are not supported in this version of " +
115103
"your compiler.", true)]
116104
public IpcServer() { }
117-
public UiPath.Ipc.EndpointCollection Endpoints { get; init; }
105+
public UiPath.Ipc.ContractCollection Endpoints { get; init; }
118106
public UiPath.Ipc.ServerTransport Transport { get; init; }
119107
public System.Threading.Tasks.ValueTask DisposeAsync() { }
120108
[System.Diagnostics.CodeAnalysis.MemberNotNull(new string[] {
@@ -152,7 +140,6 @@ namespace UiPath.Ipc
152140
}
153141
public abstract class ServerTransport
154142
{
155-
protected ServerTransport() { }
156143
public int ConcurrentAccepts { get; set; }
157144
public byte MaxReceivedMessageSizeInMegabytes { get; set; }
158145
}

0 commit comments

Comments
 (0)