Introducing Fluent WCF

March 31st, 2009 by Mark Harris Leave a reply »

About 2 weeks ago Simon and I started to work on building a fluent interface to configure WCF. Our main aim in doing so is to cover the the scenarios of configuring Services and Clients 80% (or 20%) of the time.

Our goals at this stage are

  1. Services over Basic HTTP or TCP
  2. Either No Security and Windows Transport Security
  3. No message level Security
  4. Include Service Meta Data

What this should enable us to do on the Service Host end would look like

var host = new WCFHost()
        .AtAddress("http://localhost:8080/")
        .UsingContract(typeof (IHelloService))
        .WithBinding(new BasicHttpBinding())
        .EnableMex()
        .Start();

I expect more on this shortly.

del.icio.us Tags: ,
Advertisement

5 comments

  1. Simon says:

    Sounds good
    Timeline?

  2. Simon says:

    var host = new WCFHost()
    .AtAddress(”http://localhost:8080/”)
    .UsingContract()
    .WithBinding(new ())
    .EnableMex()
    .Start();

  3. Mark Harris says:

    Simon,

    I intended to have something out already. However my work and family commitments have kept me otherwise occupied.

    I would expect to put a usable version out over the weekend.

  4. Would you consider open sourcing this project? The community could definitely use something like this.

  5. Mark Harris says:

    Paul,

    It not something that i would like to champion espically since i spend all of my time working with NServiceBus.

    David Kirkland has done some work on this and the code is available at
    http://code.google.com/p/vitamink/

    Mark

Leave a Reply