-
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Stephane Royer
committed
Nov 25, 2024
1 parent
b296c1c
commit 730b30b
Showing
8 changed files
with
250 additions
and
220 deletions.
There are no files selected for viewing
165 changes: 83 additions & 82 deletions
165
src/Paillave.EntityFrameworkCoreExtension/EfSave/EfSaveEngine.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/Tutorials/Paillave.Etl.Samples/InputFiles/Input01.Portfolios.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
SicavCode,SicavName,SicavType,PortfolioCode,PortfolioName | ||
S1,Sicav1,UCITS,P1,Portfolio1 | ||
S2,Sicav2,AIFM,P2,Portfolio2 | ||
S1,Sicav1,UCITS,P3,Portfolio3 | ||
S1,Sicav1AA,UCITS,P1,Portfolio1 | ||
S2,Sicav2AA,AIFM,P2,Portfolio2 | ||
S1,Sicav1AA,UCITS,P3,Portfolio3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
using Paillave.Etl.Core; | ||
using Paillave.Etl.FileSystem; | ||
using Paillave.Etl.GraphApi; | ||
var graphApiConnectionParameters = new GraphApiAdapterConnectionParameters | ||
{ | ||
}; | ||
var executionOptions = new ExecutionOptions<string> | ||
{ | ||
Connectors = new FileValueConnectors() | ||
.Register(new GraphApiMailFileValueProvider("GRAPHIN", "GraphIn", "GraphIn", graphApiConnectionParameters, | ||
new GraphApiMailAdapterProviderParameters | ||
{ | ||
AttachmentNamePattern = "*", | ||
SetToReadIfBatchDeletion = true, | ||
Folder="Boîte de réception" | ||
})) | ||
.Register(new GraphApiMailFileValueProcessor("GRAPHOUT", "GraphOut", "GraphOut", graphApiConnectionParameters, | ||
new GraphApiAdapterProcessorParameters | ||
{ | ||
Body = "Body", | ||
Subject = "Subject", | ||
})) | ||
.Register(new FileSystemFileValueProvider("IN", "Input", Path.Combine(Environment.CurrentDirectory, "InputFiles"), "*")) | ||
.Register(new FileSystemFileValueProcessor("OUT1", "Output", Path.Combine(Environment.CurrentDirectory, "Output"))) | ||
.Register(new FileSystemFileValueProcessor("OUT2", "Output", Path.Combine(Environment.CurrentDirectory, "Output", "B"))), | ||
}; | ||
// using Paillave.Etl.Core; | ||
// using Paillave.Etl.FileSystem; | ||
// using Paillave.Etl.GraphApi; | ||
// var graphApiConnectionParameters = new GraphApiAdapterConnectionParameters | ||
// { | ||
// }; | ||
// var executionOptions = new ExecutionOptions<string> | ||
// { | ||
// Connectors = new FileValueConnectors() | ||
// .Register(new GraphApiMailFileValueProvider("GRAPHIN", "GraphIn", "GraphIn", graphApiConnectionParameters, | ||
// new GraphApiMailAdapterProviderParameters | ||
// { | ||
// AttachmentNamePattern = "*", | ||
// SetToReadIfBatchDeletion = true, | ||
// Folder="Boîte de réception" | ||
// })) | ||
// .Register(new GraphApiMailFileValueProcessor("GRAPHOUT", "GraphOut", "GraphOut", graphApiConnectionParameters, | ||
// new GraphApiAdapterProcessorParameters | ||
// { | ||
// Body = "Body", | ||
// Subject = "Subject", | ||
// })) | ||
// .Register(new FileSystemFileValueProvider("IN", "Input", Path.Combine(Environment.CurrentDirectory, "InputFiles"), "*")) | ||
// .Register(new FileSystemFileValueProcessor("OUT1", "Output", Path.Combine(Environment.CurrentDirectory, "Output"))) | ||
// .Register(new FileSystemFileValueProcessor("OUT2", "Output", Path.Combine(Environment.CurrentDirectory, "Output", "B"))), | ||
// }; | ||
|
||
var result = await StreamProcessRunner.CreateAndExecuteAsync("", triggerStream => | ||
{ | ||
triggerStream.FromConnector("get input", "IN") | ||
// .ToConnector("write output", "S3OUT") | ||
.ToConnector("write output2", "GRAPHOUT"); | ||
}, executionOptions); | ||
// var result = await StreamProcessRunner.CreateAndExecuteAsync("", triggerStream => | ||
// { | ||
// triggerStream.FromConnector("get input", "IN") | ||
// // .ToConnector("write output", "S3OUT") | ||
// .ToConnector("write output2", "GRAPHOUT"); | ||
// }, executionOptions); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.