• Sajay's Blog

    WCF Performance Counters

    • 2 Comments
    Note: Cross posted from Sajay . We generally need to have a quick set of performance counters to identify a performance issue with a service. Shown below are three new counters that you will find with WCF 4.0. I also want to emphasize on the Calls...
  • Sajay's Blog

    How do I get the Message Body as an XElement?

    • 0 Comments
    Note: Cross posted from Sajay . Permalink This was one was interesting as the service was exposed as a fully typed service, but the client wanted to modify some parts of the xml. Ideally you can plug into any part to perform these operations, but...
  • Sajay's Blog

    HTTP polling duplex - Performance

    • 0 Comments
    Note: Cross posted from Sajay . Permalink Really good article on Performance of HTTP polling duplex server-side channel in Microsoft Silverlight 3 by Tomek from the ServiceModel/SL team. http://tomasz.janczuk.org/2009/08/performance-of-http-polling...
  • Sajay's Blog

    Applying behaviors on the client channel

    • 0 Comments
    Note: Cross posted from Sajay . Permalink When we need to modify or see the message before its sent or after its received, we generally can use a Message inspector. However sometimes we want to be a bit more granular. One such requirement was to perform...
  • Sajay's Blog

    WCF 4: AddDefaultEndpoints

    • 0 Comments
    Note: Cross posted from Sajay . Permalink Here is another little goodie we have which will help in reducing configuration. You can use the ServiceHostBase.AddDefaultEndpoints which will pretty much probe your service implementation for contracts and...
  • Sajay's Blog

    How do I get the workflow InstanceId?

    • 0 Comments
    Note: Cross posted from Sajay . Permalink You can use a CodeActivity that returns a single result . public sealed class GetWorkflowInstanceId : CodeActivity<Guid> { protected override Guid Execute(CodeActivityContext context) { ...
  • Sajay's Blog

    Hello World Workflow Service 4.0

    • 0 Comments
    Note: Cross posted from Sajay . Permalink Building a workflow service using 4.0 gives a very neat set of capabilities from both WF and WCF. Similar to WCF we can fully define a workflow either in code or otherwise just using Xaml. Here I chose a fully...
  • Sajay's Blog

    Channel9: Monitoring WF Services

    • 0 Comments
    Note: Cross posted from Sajay . Permalink 10-4 Episode 24: Monitoring Workflow Services by Ron Jacobs - One of the great advantages to building services with WCF and Windows Workflow 4 is that the environment is instrumented with loads of events that...
  • Sajay's Blog

    Concurrent Receives - MaxPendingReceives

    • 0 Comments
    Note: Cross posted from Sajay . Permalink One of the performance improvements we did with WCF 4.0 was to enable concurrent receives. This greatly helps scenarios where we need to do some kind of work like DB authentication with username passwords or...
  • Sajay's Blog

    ServiceThrottlingBehavior defaults for .NET 4

    • 1 Comments
    This is one of the new updates that you will find with the .NET 4 installation. This was a decision we reached after understanding the fact that almost all customers had to bump this number up to a sweet spot of around 100 sessions. However the initial...
  • Sajay's Blog

    What to Measure?

    • 0 Comments
    Note: Cross posted from Sajay . Permalink     If it doesn't run fast at first, it will run even slower later.
  • Sajay's Blog

    Performance Testing for Web application - NeXpert

    • 0 Comments
    Note: Cross posted from Sajay . Permalink Here is a quick way to get an idea of how long your request/response takes and a ton of more data regarding your payload. neXpert is an add-on to Fiddler Web Debugger which aids in performance testing web...
  • Sajay's Blog

    The Channel Pump

    • 0 Comments
    Note: Cross posted from Sajay . Permalink Deep dive - Nicholas Allen's talk on WCF performance and Scale - PowerPoint Deck - Webcast From the above talk you get an idea of the pull and the push model and a combination of these for certain channels...
  • Sajay's Blog

    AsyncResults and IAsyncResults

    • 0 Comments
    Note: Cross posted from Sajay . Permalink Here is a deep dive on of how to implement your AsyncResult http://www.sajay.com/page/Implementing-IAsyncResult.aspx Quick Pointers  Hello World - Using the IAsyncResult Source AsyncResult.cs
  • Sajay's Blog

    How to use an AsyncResult?

    • 0 Comments
    Note: Cross posted from Sajay . Permalink I have a much longer article in mind for this and will be publishing it out soon . But to quickly answer this let us use an implementation from the framework itself using a delegate. Please note, this is...
  • Sajay's Blog

    Lock Free iterator

    • 0 Comments
    Note: Cross posted from Sajay . Permalink Most common data structures are usually meant for single threaded access and queues are no exception. When there are multiple producers writing to the queue we usually need to make sure that the writer is...
  • Sajay's Blog

    Find processes that have open handles to your files - Powershell

    • 0 Comments
    Note: Cross posted from Sajay . Permalink This seemed like a really nice mix of handle.exe from sysinternals and powershell. Check out the script at http://msgoodies.blogspot.com/2009/03/get-openfile.html Update fix for get-process piping You have...
  • Sajay's Blog

    How can I create a binding instance from a configuration name?

    • 0 Comments
    Bindings (such as BasicHttpBinding, WSHttpBinding etc.) have a have a constructor that take the configuration name. You need to know the type of binding as the name themselves are not unique across different binding sections.
  • Sajay's Blog

    WCF Configuration Manager

    • 0 Comments
    Note: Cross posted from Sajay . Permalink Finally after about 3 releases of WCF we got a configuration service sample on MSDN. I haven't exactly played with the bits myself but did get a good review from some folks who wanted to use it for service...
  • Sajay's Blog

    Speaking at Techready

    • 1 Comments
    *** MOVED to http://www.sajay.com/post/2009/02/05/Speaking-at-Techready.aspx This was my first time presenting at Techready . Being a part of the performance dev team in WCF, this would be a natural topic to pick up. The audience was great and we were...
  • Sajay's Blog

    Tips on matching you Bindings

    • 0 Comments
    Have you ever tried to get CustomBindings equivalent to a StandardBinding or vice versa. Well recently I was asked why a customBinding like < customBinding > < binding name = " Custom " > < textMessageEncoding /> < security authenticationMode...
  • Sajay's Blog

    Softwear!!!!

    • 0 Comments
    Note : this entry has moved .   There is no way you can not remember the days when you though TSR 's were cool. http://adage.com/agencynews/article?article_id=133069
  • Sajay's Blog

    The EventLog and Message limits

    • 1 Comments
    Note : this entry has moved . Sometimes I have to fix certain issues in BizTalk and during one of these exercises I had to write a large message into the eventlog.OUCH! Ok now who does that ? Well I’m not at fault here but then again we did require...
  • Sajay's Blog

    Bird is leaving the blogs.msdn.com nest

    • 1 Comments
    After quite a lot of hard work I finally managed to move and aggregate stuff and so have moved onto http://sajay.com . What even was or would have been here is now at http://sajay.com/category/Microsoft.aspx Microsoft (68) Thats all folks.
  • Sajay's Blog

    Synchronous execution in WF

    • 0 Comments
    My previous post points to those of you who want a first look at WF 4.0 . This post focuses more on how to get one of the best Async Runtimes to get executed in sync(shooting myself in the foot here). This was inspired by a question from a friend of...
Page 2 of 5 (114 items) 12345