Data flow between Parent and child threads in Dotnetcore or Alternative for Call Context in .NET Core

Duraikannu Jeyamani 6 Reputation points
2021-04-15T14:17:41.827+00:00

I understand that .Net Core doesn't support Call Context. But our application uses the same and we are planning to migrate it to .Net Core.
I am trying to maintain data between parent and its child threads in Dotnetcore web applications.
where I need to store web application name and web request URL of Parent thread and needs to use it when its child thread starts its execution. Even if Parent thread completes its execution before its child thread starts its execution i need to maintain the parent data. I have tried Execution Context, Async Local, Thread Local/static to maintain data between parent and child threads and did not helped.

Could anyone suggest us the Alternative (or) equality approach for this in .Net Core?

System.Runtime.Remoting.Messaging ==> class CallContext

Could anyone suggest us the Alternative approach for CallContext.LogicalSetData() and CallContext.LogicalGetData()

Thanks in advance.

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,277 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Duane Arnold 3,216 Reputation points
    2021-04-16T06:17:01.63+00:00
    0 comments No comments