public ExceptionConfigurationLoggingProviderBuilder(IExceptionConfigurationForExceptionTypeOrPostHandling context, 
                                                     Type faultContractType, 
                                                     string faultContractMessage)
     :base(context)
 {
     shieldingHandling = new FaultContractExceptionHandlerData
     {
         Name = faultContractType.FullName,
         FaultContractType = faultContractType.AssemblyQualifiedName,
         ExceptionMessage = faultContractMessage
     };
     
     base.CurrentExceptionTypeData.ExceptionHandlers.Add(shieldingHandling);
 }
Exemplo n.º 2
0
            public ExceptionConfigurationLoggingProviderBuilder(IExceptionConfigurationForExceptionTypeOrPostHandling context,
                                                                Type faultContractType,
                                                                string faultContractMessage)
                : base(context)
            {
                shieldingHandling = new FaultContractExceptionHandlerData
                {
                    Name = faultContractType.FullName,
                    FaultContractType = faultContractType.AssemblyQualifiedName,
                    ExceptionMessage  = faultContractMessage
                };

                base.CurrentExceptionTypeData.ExceptionHandlers.Add(shieldingHandling);
            }
        protected override void Arrange()
        {
            base.Arrange();

            replaceException = exception.ReplaceWith(replaceExceptionType);
        }
        protected override void Arrange()
        {
            base.Arrange();

            replaceException = exception.ReplaceWith(replaceExceptionType);
        }