From 9f3573bb4a1358a2e793ce3f98da80fc840f9424 Mon Sep 17 00:00:00 2001 From: Eduard Dumitru Date: Wed, 27 Nov 2024 22:47:41 +0100 Subject: [PATCH] rename Endpoint.. to Contract.. (..Collection, ..Settings) - other simplifications --- UiPath.Ipc.net6.0-windows.received.txt | 39 +++++++++----------------- 1 file changed, 13 insertions(+), 26 deletions(-) diff --git a/UiPath.Ipc.net6.0-windows.received.txt b/UiPath.Ipc.net6.0-windows.received.txt index 8cfda51b..3b9549f7 100644 --- a/UiPath.Ipc.net6.0-windows.received.txt +++ b/UiPath.Ipc.net6.0-windows.received.txt @@ -16,41 +16,29 @@ namespace UiPath.Ipc public System.Reflection.MethodInfo Method { get; } public bool NewConnection { get; } } - public abstract class ClientTransport : System.IEquatable + public abstract class ClientTransport : System.IEquatable { } + public class ContractCollection : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - protected ClientTransport() { } - } - public class EndpointCollection : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public EndpointCollection() { } + public ContractCollection() { } public void Add(System.Type type) { } - public void Add(UiPath.Ipc.EndpointSettings endpointSettings) { } + public void Add(UiPath.Ipc.ContractSettings endpointSettings) { } public void Add(System.Type contractType, object? instance) { } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - } - public sealed class EndpointNotFoundException : System.ArgumentException - { - public string EndpointName { get; } - public string ServerDebugName { get; } + public System.Collections.Generic.IEnumerator GetEnumerator() { } } - public class EndpointSettings : System.IEquatable + public sealed class ContractSettings : System.IEquatable { - public EndpointSettings(System.Type contractType, System.IServiceProvider serviceProvider) { } - public EndpointSettings(System.Type contractType, object? serviceInstance = null) { } + public ContractSettings(System.Type contractType, System.IServiceProvider serviceProvider) { } + public ContractSettings(System.Type contractType, object? serviceInstance = null) { } public System.Func? BeforeIncomingCall { get; set; } public System.Type ContractType { get; } public System.Threading.Tasks.TaskScheduler? Scheduler { get; set; } public object? ServiceInstance { get; } public System.IServiceProvider? ServiceProvider { get; } - public void Validate() { } - public virtual UiPath.Ipc.EndpointSettings WithServiceProvider(System.IServiceProvider? serviceProvider) { } } - public sealed class EndpointSettings : UiPath.Ipc.EndpointSettings, System.IEquatable> - where TContract : class + public sealed class EndpointNotFoundException : System.ArgumentException { - public EndpointSettings(System.IServiceProvider serviceProvider) { } - public EndpointSettings(TContract? serviceInstance = null) { } - public override UiPath.Ipc.EndpointSettings WithServiceProvider(System.IServiceProvider? serviceProvider) { } + public string EndpointName { get; } + public string ServerDebugName { get; } } public class Error : System.IEquatable { @@ -94,7 +82,7 @@ namespace UiPath.Ipc public IpcClient() { } public System.Func? BeforeConnect { get; set; } public System.Func? BeforeOutgoingCall { get; set; } - public UiPath.Ipc.EndpointCollection? Callbacks { get; set; } + public UiPath.Ipc.ContractCollection? Callbacks { get; set; } public Microsoft.Extensions.Logging.ILogger? Logger { get; init; } public UiPath.Ipc.ClientTransport Transport { get; init; } public TProxy GetProxy() @@ -114,7 +102,7 @@ namespace UiPath.Ipc [System.Obsolete("Constructors of types with required members are not supported in this version of " + "your compiler.", true)] public IpcServer() { } - public UiPath.Ipc.EndpointCollection Endpoints { get; init; } + public UiPath.Ipc.ContractCollection Endpoints { get; init; } public UiPath.Ipc.ServerTransport Transport { get; init; } public System.Threading.Tasks.ValueTask DisposeAsync() { } [System.Diagnostics.CodeAnalysis.MemberNotNull(new string[] { @@ -152,7 +140,6 @@ namespace UiPath.Ipc } public abstract class ServerTransport { - protected ServerTransport() { } public int ConcurrentAccepts { get; set; } public byte MaxReceivedMessageSizeInMegabytes { get; set; } }