Skip to content

Commit 1150dc4

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

1 file changed

Lines changed: 12 additions & 21 deletions

File tree

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

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -20,37 +20,28 @@ namespace UiPath.Ipc
2020
{
2121
protected ClientTransport() { }
2222
}
23-
public class EndpointCollection : System.Collections.Generic.IEnumerable<UiPath.Ipc.EndpointSettings>, System.Collections.IEnumerable
23+
public class ContractCollection : System.Collections.Generic.IEnumerable<UiPath.Ipc.ContractSettings>, System.Collections.IEnumerable
2424
{
25-
public EndpointCollection() { }
25+
public ContractCollection() { }
2626
public void Add(System.Type type) { }
27-
public void Add(UiPath.Ipc.EndpointSettings endpointSettings) { }
27+
public void Add(UiPath.Ipc.ContractSettings endpointSettings) { }
2828
public void Add(System.Type contractType, object? instance) { }
29-
public System.Collections.Generic.IEnumerator<UiPath.Ipc.EndpointSettings> GetEnumerator() { }
29+
public System.Collections.Generic.IEnumerator<UiPath.Ipc.ContractSettings> GetEnumerator() { }
3030
}
31-
public sealed class EndpointNotFoundException : System.ArgumentException
32-
{
33-
public string EndpointName { get; }
34-
public string ServerDebugName { get; }
35-
}
36-
public class EndpointSettings : System.IEquatable<UiPath.Ipc.EndpointSettings>
31+
public sealed class ContractSettings : System.IEquatable<UiPath.Ipc.ContractSettings>
3732
{
38-
public EndpointSettings(System.Type contractType, System.IServiceProvider serviceProvider) { }
39-
public EndpointSettings(System.Type contractType, object? serviceInstance = null) { }
33+
public ContractSettings(System.Type contractType, System.IServiceProvider serviceProvider) { }
34+
public ContractSettings(System.Type contractType, object? serviceInstance = null) { }
4035
public System.Func<UiPath.Ipc.CallInfo, System.Threading.CancellationToken, System.Threading.Tasks.Task>? BeforeIncomingCall { get; set; }
4136
public System.Type ContractType { get; }
4237
public System.Threading.Tasks.TaskScheduler? Scheduler { get; set; }
4338
public object? ServiceInstance { get; }
4439
public System.IServiceProvider? ServiceProvider { get; }
45-
public void Validate() { }
46-
public virtual UiPath.Ipc.EndpointSettings WithServiceProvider(System.IServiceProvider? serviceProvider) { }
4740
}
48-
public sealed class EndpointSettings<TContract> : UiPath.Ipc.EndpointSettings, System.IEquatable<UiPath.Ipc.EndpointSettings<TContract>>
49-
where TContract : class
41+
public sealed class EndpointNotFoundException : System.ArgumentException
5042
{
51-
public EndpointSettings(System.IServiceProvider serviceProvider) { }
52-
public EndpointSettings(TContract? serviceInstance = null) { }
53-
public override UiPath.Ipc.EndpointSettings WithServiceProvider(System.IServiceProvider? serviceProvider) { }
43+
public string EndpointName { get; }
44+
public string ServerDebugName { get; }
5445
}
5546
public class Error : System.IEquatable<UiPath.Ipc.Error>
5647
{
@@ -94,7 +85,7 @@ namespace UiPath.Ipc
9485
public IpcClient() { }
9586
public System.Func<System.Threading.CancellationToken, System.Threading.Tasks.Task>? BeforeConnect { get; set; }
9687
public System.Func<UiPath.Ipc.CallInfo, System.Threading.CancellationToken, System.Threading.Tasks.Task>? BeforeOutgoingCall { get; set; }
97-
public UiPath.Ipc.EndpointCollection? Callbacks { get; set; }
88+
public UiPath.Ipc.ContractCollection? Callbacks { get; set; }
9889
public Microsoft.Extensions.Logging.ILogger? Logger { get; init; }
9990
public UiPath.Ipc.ClientTransport Transport { get; init; }
10091
public TProxy GetProxy<TProxy>()
@@ -114,7 +105,7 @@ namespace UiPath.Ipc
114105
[System.Obsolete("Constructors of types with required members are not supported in this version of " +
115106
"your compiler.", true)]
116107
public IpcServer() { }
117-
public UiPath.Ipc.EndpointCollection Endpoints { get; init; }
108+
public UiPath.Ipc.ContractCollection Endpoints { get; init; }
118109
public UiPath.Ipc.ServerTransport Transport { get; init; }
119110
public System.Threading.Tasks.ValueTask DisposeAsync() { }
120111
[System.Diagnostics.CodeAnalysis.MemberNotNull(new string[] {

0 commit comments

Comments
 (0)