예제 #1
0
 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())))))))));
 }
예제 #2
0
        static ClientServiceFactory()
        {
            var tmpAppStack = new ValidationLayer(new LocalStorageLayer(new TransportLayer()));

            ApplicationStack = (IServicesLayer)(LoggingLayer = new LoggingLayer(tmpAppStack));
        }