• Pedram Rezaei

    WCF error handling and some best practices

    I put together the following brief description of WCF Error Handling and some possible best practices for a customer. You may also find it useful: There are 4 sets of errors that clients can expect: Invalid configuration : when bindings, behaviors...
  • Pedram Rezaei

    From Exceptions to Faults

    A question that I often get asked during workshops on WCF is “Why does WCF use Faults instead of .NET Exceptions?” Exceptions expose a set of limitations and possible security risks: - They are platform/technology specific: .NET exceptions may have...
  • Pedram Rezaei

    How to cancel a task in Parallel FX?

    Task Parallel Library (TPL) allows you to easily cancel tasks. Effectively you need to call the Cancel method on the task in question. Imagine the simple sample below: Task task1 = Task .Create(Foo, 10000); static void Foo( object o) { for...
  • Pedram Rezaei

    Digging deeper into PLINQ’s internal implementation

    PLINQ is built on top of the Task Parallel Library (TPL) and promises to revolutionise the way we write programs that can benefit from the multi-core processor era. But how does it work internally? This article assumes that you are familiar with the...
Page 1 of 1 (4 items)