Recent snippets

Popular snippets

  • Chain of responsibility II

    Unlike the previous chain of responsibility, this version use the pipeline to chain responsibilities.

    106 people like this

    Posted: 14 years ago by Tao Liu

  • Chain of responsibility

    The following sample wants to make sure the person’s age is between 18 and 65, weight is no more than 200 and tall enough (>120).

    85 people like this

    Posted: 14 years ago by Tao Liu

  • Composable WCF Web API using Async

    A functional wrapper around the new WCF Web APIs (http://wcf.codeplex.com/). Composition is achieved through the use of the HttpRequestMessage -> Async signature. Pushing the app calls in the MessageHandler intercepts all requests and allows you to take control at the earliest point possible before operation selection occurs. Extending this slightly to call the innerChannel's SendAsync would allow you to create a middleware layer that would work both with this and other, normal Web API services.

    63 people like this

    Posted: 15 years ago by Ryan Riley

Snippets by tags

mailboxprocessor (27) lazy (20) silverlight (22) staging (18) web (29) seq (54) json (16) pattern matching (15) learning f# (16) agent (20) collections (16) html (16) http (18) f# (43) parsing (28) quotations (21) array (22) list (56) computation builder (17) lists (15)

View all...

Database contains 3208 snippets out of which 1719 is public.