How can I make a single WCF method ConcurrencyMode.Multiple when service is ConcurencyMode.Single

Posted by Michael Hedgpeth on Stack Overflow See other posts from Stack Overflow or by Michael Hedgpeth
Published on 2010-06-15T22:00:37Z Indexed on 2010/06/15 22:12 UTC
Read the original article Hit count: 239

Filed under:
|
|

I have a service which is defined as ConcurrencyMode.Single:

[ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Single,
    UseSynchronizationContext = false,
    InstanceContextMode = InstanceContextMode.PerSession,
    IncludeExceptionDetailInFaults = true)]
public class MyService : IMyService

This service provides a method to tell the client what it's currently working on:

    [OperationContract]
    string GetCurrentTaskDescription();

Is there a way to make this particular method allowable while another long-running task is running where all other methods still follow the single-threaded concurrency model?

© Stack Overflow or respective owner

Related posts about c#

Related posts about wcf