I am having trouble polling to get the status of a long running invoke operation in my domain service. Specifically, all calls to the invoke operation function used to poll for the status are not returning until after the long running invoke operation finishes.
Here are the details:
What can I do to get CheckStatusOfLongOperation to return sooner?
ASP.NET Server code:
Public Class MyDomainService
Inherits DomainService
<Invoke()>
Public Function RunLongOperation() As String
'Long running operation, some database queries,
'but mostly in-memory operations
End Function
<Invoke()>
Public Function CheckStatusOfLongOperation() As String
'Checks a single variable and return status
End Function
End Class
You are probably seeing locking on the session state. Check here for instructions on how to turn off locking: http://blogs.microsoft.co.il/blogs/idof/archive/2010/09/27/asp-net-compatible-wcf-services-concurrency-problem.aspx