Skip to content

jfellien/FancyFxOwin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FancyFxOwin

A small sample, to integrate OWIN hosted NancyFx Web Service. It ist prepared for publish as Windows Azure WorkerRole.

Use the Nancy Modules like:

  type YourNancyModule() as this = 
    inherit NancyModule()
    
  let toString o = 
     o.ToString()
     
  do
    this.Get.["/"] <- fun _ -> this.greeting
    this.Post.["/"] <- fun p -> this.postIt p
    
  member this.greeting = 
    "Hallo Welt"
    |> this.Response.AsText
    |> box
    
  member this.postIt param = 
    param
    |> toString
    |> this.Response.AsText 
    |> box

About

A small sample to integrate OWIN hosted NancyFx Web Service. It ist prepared for publish as Windows Azure WorkerRole.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages