task-parallel-library
How to specify that HTTP Status Code 304 (NotModified) is not an error condition inside the Amazon S3 GetObject API?
Background I am trying to make use of S3 as an \'infinity\' large caching layer for some \'fairly\' static XML documents.I want to ensure that the client application (which will be running on thousan[详细]
2023-04-12 00:45 分类:问答How to update a WPF Control from the TPL Task?
How to update a WPF Control from the TPL Task? Fine so I tried some scenarios to use Dispatcher but anyway it gives the error. I need help guys![详细]
2023-04-12 00:40 分类:问答Upload files to Azure BLOB storage - Parallel.Foreach is slower than Foreach
I have the following code for uploading a folder form local storage to blob storage, Including the folder name itself in the blob\'s name ( The code is based on some methods found here http://blog.sma[详细]
2023-04-11 17:32 分类:问答TPL Asynchronous Static Method Call Thread Safety
I need to make four calls to a WCF service asynchronously and thread safety with async stuff and static methods always cooks my brain.[详细]
2023-04-11 13:04 分类:问答Parallel Fibonacci Number Calculator
I\'m using Task Parallel Library (TPL ) for calculating Fibonacci number. Program is given below: public static int Fib(int n)[详细]
2023-04-11 07:33 分类:问答How do I write a scalable socket server using C# 4.0?
I want to write a simple socket server, however I\'d like it to be vertically scalable, for example, not creating a thread per connection or very long running tasks, which may consume all threads.[详细]
2023-04-10 23:01 分类:问答When running the following code from a unit test I find that the task is calling back to a different thread that the synchonizationContext
When running the following code from a unit test I find that the task is calling back to a different thread than the parent\'s. I didn\'t have any trouble with this in a console or WPF but it when it[详细]
2023-04-10 20:24 分类:问答How do I follow-up a Parallel.ForEach on completion?
I want to take a set of objects and run a routine on all of them. The order doesn\'t matter and they are each independent operations, so I thought I would call Parallel.ForEach on the collection. But[详细]
2023-04-10 09:49 分类:问答How can a TPL task send intermediate results to the parent thread?
I am working with TPL and need to have a long running TPL task send results to the parent UI thread without terminating. I have tried several approaches and have been googling quite a bit. Does anyone[详细]
2023-04-10 02:58 分类:问答How to restart a task elegantly?
So I have something like this: Task.Factory.FromAsync<TcpClient>(tcpListener.BeginAcceptTcpClient, tcpListener.EndAcceptTcpClient, tcpListener).ContinueWith(ConnectionAccepted);[详细]
2023-04-10 01:41 分类:问答