Async calls to WCF services using Castle WCF Facility - issue with thread principal "inheritance"

67 Views Asked by At

I'm using Castle WCF Facility to perform async calls to WCF services, e.g.

public void Start()
{
    // original thread

    svc.BeginWcfCall(x => x.GetData(), OnAsyncResult, null);
}

public void OnAsyncResult(IWcfAsyncCall<object[]> asyncCall)
{
    // callback thread
}

Is there any built-in way to force Thread.CurrentPrincipal being set to the same value as in the caller thread?

0

There are 0 best solutions below