static ServerServiceFactory() { ApplicationStack = (IServicesLayer) (TransportLayer = new TransportLayer((IServicesLayer) (LoggingLayer = new LoggingLayer( new NotificationLayer( new AuthorizationLayer( new ValidationLayer( new CachingLayer( new DispatcherLayer(new ShopAdminService(), new BasketService(), new ShopService(), new UserService()))))))))); }
static ClientServiceFactory() { var tmpAppStack = new ValidationLayer(new LocalStorageLayer(new TransportLayer())); ApplicationStack = (IServicesLayer)(LoggingLayer = new LoggingLayer(tmpAppStack)); }