This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {catchError, map} from 'rxjs/operators'; | |
import {Inject, Injectable} from '@angular/core'; | |
import {HttpClient, HttpErrorResponse} from '@angular/common/http'; | |
import {Observable} from 'rxjs/internal/Observable'; | |
import {environment} from '../../../environments/environment'; | |
import {User} from '../user/user'; | |
import {Model} from '../abstract/model'; | |
import {zip} from 'rxjs'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CustomHandleErrorAttribute : HandleErrorAttribute | |
{ | |
private static readonly ILog _log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | |
public override void OnException(ExceptionContext filterContext) | |
{ | |
if (!filterContext.HttpContext.IsCustomErrorEnabled) | |
{ | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Castle.MicroKernel.Registration; | |
using Castle.MicroKernel.SubSystems.Configuration; | |
using Castle.Windsor; | |
using MyApp.BusinessLogic.Facades; | |
namespace MyApp.Web.PresentationLogic.Container | |
{ | |
public class BusinessLogicInstaller : IWindsorInstaller | |
{ | |
public void Install(IWindsorContainer container, IConfigurationStore store) |