DataflowEx | NET dataflow and etl framework built upon Microsoft TPL
kandi X-RAY | DataflowEx Summary
kandi X-RAY | DataflowEx Summary
Code tells a lot. Let's migrate the above example to DataflowEx and see what it looks like:. Though there seems to be more code, it is quite clear. We have a class AggregatorFlow representing our flow finally, which inherits from Dataflow with type parameter string. This means the AggregatorFlow class reprensents a dataflow graph itself and accepts strings as input. In this form, dataflow blocks and data become class members. Block behaviors become class methods (which allows the outside to override!). We also implemented the abstract InputBlock property of Dataflow and exposes our internal data as an extra Result property. There are two important calls to RegisterChild() in the constructor. We will come back to this later.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of DataflowEx
DataflowEx Key Features
DataflowEx Examples and Code Snippets
Community Discussions
Trending Discussions on DataflowEx
QUESTION
I want to use DataflowEx to encapsulate this test. I am not sure that my design is correct as I have tried a lot to do it my self but I failed to make the Dataflow to complete as in my test and is not clear how I should post the server, IP combination from the outside.
...ANSWER
Answered 2018-Jan-08 at 16:39Overriding the Complete method to complete the additional BufferBlock makes the test pass.
QUESTION
I am trying to use the open source lib DataflowEx with the next Dataflow declaration.
...ANSWER
Answered 2017-Dec-26 at 16:57Your flow cannot complete since the last block is a TransformBlock
. In your first example you await
completion of the Input block which does in fact complete. The Output block cannot complete as the items in its output buffer have nowhere to go. The DataflowEx
library is correctly awaiting
on the final block in the flow. You can add an ActionBlock
or NullTarget
to the end to realize completion.
In terms of DataflowEx
the final flow should be implmeneting
QUESTION
I am using DataFlowEx and am wondering how I can avoid shutting down an entire DataFlow if an exception is thrown.
I have a system where tasks will come in at random times, and I want the network to log failures, abandon that particular task and continue with execution of the others.
In reading the documentation on both TPL and DataFlowEx, specifically things like
It [a faulted block] should decline any further incoming messages. Here
DataflowEx takes a fast-fail approach on exception handling just like TPL Dataflow. When an exception is thrown, the low-level block ends to the Faulted state first. Then the Dataflow instance who is the parent of the failing block gets notified. It will immediately propagate the fatal error: notify its other children to shutdown immediately. After all its children is done/completed, the parent Dataflow also comes to its completion, with the original exception wrapped in the CompletionTask whose status is also Faulted. Here
It almost seems like a block moving on from a failure is not intended...
My flows include a lot of File IO and i am expecting the occasional exception to occur (network volumes going offline during read/write, connection failures, permission issues...)
I don't want the entire pipeline to die.
Here is an example of the code I'm working with:
...ANSWER
Answered 2017-Nov-07 at 19:36A block will become faulted if it throws an Exception
. If you do not want the pipeline to fail you can either not propagate completion or handle the Exception
. Handling the exception can take many forms but it sounds like all you need is a simple retry. You could use a try/catch
and implement your own retry loop or use something like Polly. A simple example is shown below.
QUESTION
I am using a library called DataFlowEx and it requires a configuration for NLog in order to output it's debug and other information.
The tutorial shows the configuration using xml files.
I thought of using Microsoft.Extensions.Configuration
, and pointing that to the XML but it doesn't seem to work...
Here is what I have so far:
...ANSWER
Answered 2017-Nov-06 at 23:32Maybe this can help:
https://github.com/net-commons/common-logging/issues/153
Stop using the app.config, but instead use a dedicated nlog.config (Remember to configure the nlog.config-file to "Copy Always")
QUESTION
When I start up my Visual Studio 2008 with ReSharper 8.2.3 using the /Log switch, I can see in the produced log-file, that several exceptions are thrown by ReSharper. I cannot use VS to change any files (typing is not deactivated, but it ignores any non-ascii typing). As soon as I deactivate ReSharper, everything is back to normal.
devenv.exe /Resharper.LogFile /Resharper.LogLevel Verbose output:[snipped - startup info and threads logging verbose....]
...ANSWER
Answered 2017-Nov-01 at 07:15Who would have thought, that the solution is so simple. I vaguely remembered setting a new language locale on my system prior to going on holiday. After returning from said holiday, the phenomenon described in the question started.
Solution- Remove the language locale en-CH (english Switzerland) and set the default en-US.
- Restart the PC.
- Problem solved.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install DataflowEx
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page