C
C#15mo ago
SWEETPONY

✅ How to run task in separate process?

I wrote following logic
var task = Task.Factory.StartNew( () =>
{
return _fileManagerClient.FileRegister(
register: fileRegister,
parameters: context.ToRequestParameters()
);
} );

task.Start();
task.Wait();
var task = Task.Factory.StartNew( () =>
{
return _fileManagerClient.FileRegister(
register: fileRegister,
parameters: context.ToRequestParameters()
);
} );

task.Start();
task.Wait();
The first problem: I don't understand how to get the result of FileRegister, not Task Is it correct way to run task in separate process?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server