コード例 #1
0
        public WidgetSpecificationModule(IWidgetSpecificationService widgetSpecificationService)
            : base("/_kola/widgets")
        {
            this.widgetSpecificationService = widgetSpecificationService;

            this.Get["/"]              = p => this.GetWidget();
            this.Put["/"]              = p => this.PutWidget();
            this.Get["/components"]    = p => this.GetComponent();
            this.Get["/amendments"]    = p => this.GetAmendments();
            this.Post["/amendments"]   = p => this.PostAmendment();
            this.Put["/amendments"]    = p => this.ApplyAmendments();
            this.Delete["/amendments"] = p => this.UndoAmendment();
        }
コード例 #2
0
        public WidgetSpecificationModule(IWidgetSpecificationService widgetSpecificationService)
            : base("/_kola/widgets")
        {
            this.widgetSpecificationService = widgetSpecificationService;

            this.Get["/"] = p => this.GetWidget();
            this.Put["/"] = p => this.PutWidget();
            this.Get["/components"] = p => this.GetComponent();
            this.Get["/amendments"] = p => this.GetAmendments();
            this.Post["/amendments"] = p => this.PostAmendment();
            this.Put["/amendments"] = p => this.ApplyAmendments();
            this.Delete["/amendments"] = p => this.UndoAmendment();
        }