public DestinationPartHandler(IDestinationPathConstraint destinationPathConstraint)
        {
            this.destinationPathConstraint = destinationPathConstraint;

            OnPublished<DestinationPart>(
                (context, destination) => this.destinationPathConstraint.AddPath(destination.As<IAliasAspect>().Path));
            OnUnpublished<DestinationPart>(
                (context, destination) => this.destinationPathConstraint.RemovePath(destination.As<IAliasAspect>().Path));
        }
 public DestinationController(
     IOrchardServices services, 
     IDestinationService destinationService,
     IHotelService hotelService,
     IDestinationPathConstraint destinationPathConstraint, 
     IShapeFactory shapeFactory,
     ISiteService siteService) {
     this.services = services;
     this.destinationService = destinationService;
     this.hotelService = hotelService;
     this.siteService = siteService;
     this.Logger = NullLogger.Instance;
     this.Shape = shapeFactory;
 }
 public DestinationService(IContentManager contentManager, IDestinationPathConstraint destinationPathConstraint)
 {
     this.contentManager = contentManager;
     this.destinationPathConstraint = destinationPathConstraint;
 }
 public DestinationPathConstraintUpdator(IDestinationPathConstraint destinationPathConstraint, IDestinationService destinationService)
 {
     this.destinationPathConstraint = destinationPathConstraint;
     this.destinationService = destinationService;
 }