diff --git a/src/System.ServiceModel.Primitives/ref/System.ServiceModel.Primitives.Netcoreapp.cs b/src/System.ServiceModel.Primitives/ref/System.ServiceModel.Primitives.Netcoreapp.cs index 118ce96866b..a5c70cc8fc7 100644 --- a/src/System.ServiceModel.Primitives/ref/System.ServiceModel.Primitives.Netcoreapp.cs +++ b/src/System.ServiceModel.Primitives/ref/System.ServiceModel.Primitives.Netcoreapp.cs @@ -4,6 +4,8 @@ // Changes to this file must follow the http://aka.ms/api-review process. // ------------------------------------------------------------------------------ +using System.Collections.ObjectModel; + namespace System.ServiceModel { public abstract partial class ChannelFactory : System.IAsyncDisposable @@ -49,3 +51,19 @@ public abstract partial class SecurityTokenProvider protected virtual System.Threading.Tasks.Task CancelTokenCoreAsync(System.TimeSpan timeout, System.IdentityModel.Tokens.SecurityToken token) { return default; } } } +namespace System.ServiceModel.Dispatcher +{ + public sealed partial class ClientRuntime + { + internal bool EnableFaults { get { return default; } set { } } + } + public partial class ChannelDispatcher + { + public Collection ErrorHandlers { get { return default; } } + } + public interface IErrorHandler + { + void ProvideFault(Exception error, System.ServiceModel.Channels.MessageVersion version, ref System.ServiceModel.Channels.Message fault); + bool HandleError(Exception error); + } +}