I tried to access dynamic property in Nancy. In Nancy, if the pass parameter in the request is a dynamic property. How can I access it.
There are many discussions / questions about this, but every time he first creates dynamics and then consumes it. How can I use what is already created?
Here are two pieces of code
public class ParameterModule : NancyModule { public ParameterModule():base("/{about}") { this.Get["/"] = (parameters) => "Hello About" + parameters.about; } }
and for F #
type ParameterModule() as this = inherit NancyModule("/{about}") do this.Get.["/"] <- fun parameters -> "Hello" + parameters?("about") :> obj
I cannot access because the object does not have this property.
Please let me know if any further information is needed.
source share