File: FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ErrorHandlerFaultInfo.cs
Web Access
Project: src\src\dotnet-svcutil\lib\src\dotnet-svcutil-lib.csproj (dotnet-svcutil-lib)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
 
using System.ServiceModel.Channels;
 
namespace System.ServiceModel.Dispatcher
{
    internal struct ErrorHandlerFaultInfo
    {
        private Message _fault;   // if this is null, then we aren't interested in sending back a fault
        private bool _isConsideredUnhandled;  // if this is true, it means Fault is the 'internal server error' fault
        private string _defaultFaultAction;
 
        public ErrorHandlerFaultInfo(string defaultFaultAction)
        {
            _defaultFaultAction = defaultFaultAction;
            _fault = null;
            _isConsideredUnhandled = false;
        }
 
        public Message Fault
        {
            get { return _fault; }
            set { _fault = value; }
        }
 
        public string DefaultFaultAction
        {
            get { return _defaultFaultAction; }
            set { _defaultFaultAction = value; }
        }
 
        public bool IsConsideredUnhandled
        {
            get { return _isConsideredUnhandled; }
            set { _isConsideredUnhandled = value; }
        }
    }
}