Skip to content

Commit

Permalink
Merge pull request #264 from ignatandrei/263-httpsgithubcomaabsactors…
Browse files Browse the repository at this point in the history
…rcgen

263 httpsgithubcomaabsactorsrcgen
  • Loading branch information
ignatandrei committed May 11, 2024
2 parents 0074d58 + bef6fe5 commit 6383097
Show file tree
Hide file tree
Showing 65 changed files with 2,459 additions and 4,213 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
with:
node-version: ${{ inputs.nodeVersion }}
cache: 'npm'
cache-dependency-path: "./v2/src/rscg_examples_site/package-lock.json"
cache-dependency-path: "./v2/rscg_examples_site/package-lock.json"

- run: |
cd v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
with:
node-version: 20.9.0
cache: 'npm'
cache-dependency-path: "./v2/src/rscg_examples_site/package-lock.json"
cache-dependency-path: "./v2/rscg_examples_site/package-lock.json"

- run: |
cd v2
Expand Down
101 changes: 58 additions & 43 deletions README.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions v2/Generator/GeneratorData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@ public enum Category
Hangfire,
AOP,
Bitwise,
Actor,
}

7 changes: 5 additions & 2 deletions v2/Generator/MultiGeneratorV2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public class MultiGeneratorV2
,new("https://github.com/SzymonHalucha/Minerals.AutoCommands",later)
,new("https://github.com/OrgEleCho/EleCho.Internationalization",WaitingForIssue)
,new("https://github.com/StevenThuriot/TableStorage",later)
,new("https://github.com/aabs/ActorSrcGen",later)

//,new("",later)
//,new("",later)
//,new("",later)
Expand Down Expand Up @@ -336,7 +336,7 @@ public MultiGeneratorV2(string root)
{"RossLean.StringificationGenerator",new (true,new(2024,4,18),Category.CodeToString) },
{"ThisClass",new(true,new(2024,4,19),Category.EnhancementClass) },
{"Minerals.AutoMixins",new(true,new(2024,4,20),Category.Templating) },

{"ActorSrcGen", new(true,new(2024,5,1),Category.Actor) }
};
var noCategory = generators.Where(it=>it.Value.Category == Category.None).ToArray();
if (noCategory.Length > 0)
Expand Down Expand Up @@ -531,6 +531,9 @@ public string[] SourceNoRSCG()
response = await tryToGetMasterOrMain(httpClient, url + "docs/README.md");
if (!string.IsNullOrWhiteSpace(response)) return response;

response = await tryToGetMasterOrMain(httpClient, url + "ReadMe.md");
if (!string.IsNullOrWhiteSpace(response)) return response;

Console.WriteLine("!!! not grab readme.md from "+source + " with url "+ url);
return null;

Expand Down
65 changes: 65 additions & 0 deletions v2/book/examples/ActorSrcGen.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@

<h1>RSCG nr 141 : ActorSrcGen</h1>

<h2>Info</h2>
Nuget : <a href="https://www.nuget.org/packages/ActorSrcGen/" target="_blank">https://www.nuget.org/packages/ActorSrcGen/</a>

<p>You can find more details at : <a href="https://github.com/aabs/ActorSrcGen" target="_blank"> https://github.com/aabs/ActorSrcGen</a></p>

<p>Author :Andrew Matthews</p>

<p>Source : <a href="https://github.com/aabs/ActorSrcGen" target="_blank">https://github.com/aabs/ActorSrcGen</a> </p>

<h2>About</h2>

Generating source code for actors in C#.

<h2>
How to use
</h2>
<h3>
Add reference to the <a href="https://www.nuget.org/packages/ActorSrcGen/" target="_blank">ActorSrcGen</a> in the csproj
</h3>
<img src="images/ActorSrcGen/ActorDemo.csproj.png" width="580" height="580" />

<h3>This was for me the <b>starting</b> code</h3>

<br />
I have <b>coded</b> the file Program.cs
<br />
<img src="images/ActorSrcGen/csFiles/Program.cs.png" width="580" height="580" />
<hr />

<br />
I have <b>coded</b> the file DayWorkflow.cs
<br />
<img src="images/ActorSrcGen/csFiles/DayWorkflow.cs.png" width="580" height="580" />
<hr />

<br />
I have <b>coded</b> the file Person.cs
<br />
<img src="images/ActorSrcGen/csFiles/Person.cs.png" width="580" height="580" />
<hr />
<h3>And here are the <i>generated</i> files</h3>

<br />
The file <i>generated</i> is DayWorkflow.generated.cs
<br />
<img src="images/ActorSrcGen/generated/DayWorkflow.generated.cs.png" width="580" height="580" />

<p>
You can download the code and this page as pdf from
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/ActorSrcGen'>
https://ignatandrei.github.io/RSCG_Examples/v2/docs/ActorSrcGen
</a>
</p>


<p>
You can see the whole list at
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG'>
https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG
</a>
</p>

5 changes: 0 additions & 5 deletions v2/book/examples/CopyCat.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@ <h3>This was for me the <b>starting</b> code</h3>
<hr />
<h3>And here are the <i>generated</i> files</h3>

<br />
The file <i>generated</i> is CofeeWithLogging.g.cs
<br />
<img src="images/CopyCat/generated/CofeeWithLogging.g.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is CoffeeWithLogging.g.cs
<br />
Expand Down
15 changes: 0 additions & 15 deletions v2/book/examples/DomainPrimitives.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,6 @@ <h3>And here are the <i>generated</i> files</h3>
<br />
<img src="images/DomainPrimitives/generated/DayDateTypeConverter.g.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is MinutesInteger.g.cs
<br />
<img src="images/DomainPrimitives/generated/MinutesInteger.g.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is MinutesIntegerJsonConverter.g.cs
<br />
<img src="images/DomainPrimitives/generated/MinutesIntegerJsonConverter.g.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is MinutesIntegerTypeConverter.g.cs
<br />
<img src="images/DomainPrimitives/generated/MinutesIntegerTypeConverter.g.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is MonthDate.g.cs
<br />
Expand Down
50 changes: 0 additions & 50 deletions v2/book/examples/InterceptorTemplate.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,56 +55,6 @@ <h3>This was for me the <b>starting</b> code</h3>
<hr />
<h3>And here are the <i>generated</i> files</h3>

<br />
The file <i>generated</i> is RSCG_DemoObjects.IPersonLoader_InsertPerson_10.cs
<br />
<img src="images/InterceptorTemplate/generated/RSCG_DemoObjects.IPersonLoader_InsertPerson_10.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is RSCG_DemoObjects.PersonLoader_Connect_9.cs
<br />
<img src="images/InterceptorTemplate/generated/RSCG_DemoObjects.PersonLoader_Connect_9.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is RSCG_DemoObjects.PersonLoader_SavePerson_8.cs
<br />
<img src="images/InterceptorTemplate/generated/RSCG_DemoObjects.PersonLoader_SavePerson_8.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is RSCG_DemoObjects.Person_FullName_1.cs
<br />
<img src="images/InterceptorTemplate/generated/RSCG_DemoObjects.Person_FullName_1.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is RSCG_DemoObjects.Person_FullName_3.cs
<br />
<img src="images/InterceptorTemplate/generated/RSCG_DemoObjects.Person_FullName_3.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is RSCG_DemoObjects.Person_PersonsLoaded_4.cs
<br />
<img src="images/InterceptorTemplate/generated/RSCG_DemoObjects.Person_PersonsLoaded_4.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is RSCG_DemoObjects.Person_PersonsLoaded_5.cs
<br />
<img src="images/InterceptorTemplate/generated/RSCG_DemoObjects.Person_PersonsLoaded_5.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is RSCG_DemoObjects.Person_ShowRandomPersonNumber_7.cs
<br />
<img src="images/InterceptorTemplate/generated/RSCG_DemoObjects.Person_ShowRandomPersonNumber_7.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is RSCG_DemoObjects.Person_TestFullNameWithArguments_6.cs
<br />
<img src="images/InterceptorTemplate/generated/RSCG_DemoObjects.Person_TestFullNameWithArguments_6.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is RSCG_DemoObjects.Person_Test_2.cs
<br />
<img src="images/InterceptorTemplate/generated/RSCG_DemoObjects.Person_Test_2.cs.png" width="580" height="580" />

<p>
You can download the code and this page as pdf from
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/InterceptorTemplate'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,26 +79,6 @@ <h3>And here are the <i>generated</i> files</h3>
<br />
<img src="images/Microsoft.Interop.JavaScript.JSImportGenerator/generated/JSImports.g.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is App_razor.g.cs
<br />
<img src="images/Microsoft.Interop.JavaScript.JSImportGenerator/generated/App_razor.g.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is MainLayout_razor.g.cs
<br />
<img src="images/Microsoft.Interop.JavaScript.JSImportGenerator/generated/MainLayout_razor.g.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is Pages_Index_razor.g.cs
<br />
<img src="images/Microsoft.Interop.JavaScript.JSImportGenerator/generated/Pages_Index_razor.g.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is _Imports_razor.g.cs
<br />
<img src="images/Microsoft.Interop.JavaScript.JSImportGenerator/generated/_Imports_razor.g.cs.png" width="580" height="580" />

<p>
You can download the code and this page as pdf from
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/Microsoft.Interop.JavaScript.JSImportGenerator'>
Expand Down
35 changes: 0 additions & 35 deletions v2/book/examples/Microsoft.NET.Sdk.Razor.SourceGenerators.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,41 +108,6 @@ <h3>And here are the <i>generated</i> files</h3>
<br />
<img src="images/Microsoft.NET.Sdk.Razor.SourceGenerators/generated/Pages__ViewStart_cshtml.g.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is Pages_Error_cshtml.g.cs
<br />
<img src="images/Microsoft.NET.Sdk.Razor.SourceGenerators/generated/Pages_Error_cshtml.g.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is Pages_Index_cshtml.g.cs
<br />
<img src="images/Microsoft.NET.Sdk.Razor.SourceGenerators/generated/Pages_Index_cshtml.g.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is Pages_Privacy_cshtml.g.cs
<br />
<img src="images/Microsoft.NET.Sdk.Razor.SourceGenerators/generated/Pages_Privacy_cshtml.g.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is Pages_Shared__Layout_cshtml.g.cs
<br />
<img src="images/Microsoft.NET.Sdk.Razor.SourceGenerators/generated/Pages_Shared__Layout_cshtml.g.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is Pages_Shared__ValidationScriptsPartial_cshtml.g.cs
<br />
<img src="images/Microsoft.NET.Sdk.Razor.SourceGenerators/generated/Pages_Shared__ValidationScriptsPartial_cshtml.g.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is Pages__ViewImports_cshtml.g.cs
<br />
<img src="images/Microsoft.NET.Sdk.Razor.SourceGenerators/generated/Pages__ViewImports_cshtml.g.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is Pages__ViewStart_cshtml.g.cs
<br />
<img src="images/Microsoft.NET.Sdk.Razor.SourceGenerators/generated/Pages__ViewStart_cshtml.g.cs.png" width="580" height="580" />

<p>
You can download the code and this page as pdf from
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/Microsoft.NET.Sdk.Razor.SourceGenerators'>
Expand Down
5 changes: 5 additions & 0 deletions v2/book/examples/PlantUmlClassDiagramGenerator.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ <h3>And here are the <i>generated</i> files</h3>
<br />
<img src="images/PlantUmlClassDiagramGenerator/generated/Attributes.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is Person.puml
<br />
<img src="images/PlantUmlClassDiagramGenerator/generated/Person.puml.png" width="580" height="580" />

<p>
You can download the code and this page as pdf from
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/PlantUmlClassDiagramGenerator'>
Expand Down
35 changes: 0 additions & 35 deletions v2/book/examples/SafeRouting.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,41 +72,6 @@ <h3>And here are the <i>generated</i> files</h3>
<br />
<img src="images/SafeRouting/generated/Views__ViewStart_cshtml.g.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is Views_Home_Index_cshtml.g.cs
<br />
<img src="images/SafeRouting/generated/Views_Home_Index_cshtml.g.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is Views_Home_Privacy_cshtml.g.cs
<br />
<img src="images/SafeRouting/generated/Views_Home_Privacy_cshtml.g.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is Views_Shared_Error_cshtml.g.cs
<br />
<img src="images/SafeRouting/generated/Views_Shared_Error_cshtml.g.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is Views_Shared__Layout_cshtml.g.cs
<br />
<img src="images/SafeRouting/generated/Views_Shared__Layout_cshtml.g.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is Views_Shared__ValidationScriptsPartial_cshtml.g.cs
<br />
<img src="images/SafeRouting/generated/Views_Shared__ValidationScriptsPartial_cshtml.g.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is Views__ViewImports_cshtml.g.cs
<br />
<img src="images/SafeRouting/generated/Views__ViewImports_cshtml.g.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is Views__ViewStart_cshtml.g.cs
<br />
<img src="images/SafeRouting/generated/Views__ViewStart_cshtml.g.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is ControllerRoutes.g.cs
<br />
Expand Down
6 changes: 5 additions & 1 deletion v2/book/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</head>
<body>
<h1>
This is the list of 140 RSCG with examples =>
This is the list of 141 RSCG with examples =>
</h1>

<table >
Expand Down Expand Up @@ -586,6 +586,10 @@ <h1>
<td>140</td>
<td><a href="examples/Minerals.AutoMixins.html">Minerals.AutoMixins</a></td>
</tr>
<tr>
<td>141</td>
<td><a href="examples/ActorSrcGen.html">ActorSrcGen</a></td>
</tr>
</table>


Expand Down
1 change: 1 addition & 0 deletions v2/book/pandocHTML.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ input-files:
- examples/RossLean.StringificationGenerator.html
- examples/ThisClass.html
- examples/Minerals.AutoMixins.html
- examples/ActorSrcGen.html

# or you may use input-file: with a single value
# defaults:
Expand Down
22 changes: 22 additions & 0 deletions v2/rscg_examples/ActorSrcGen/description.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"generator":{
"name":"ActorSrcGen",
"nuget":[
"https://www.nuget.org/packages/ActorSrcGen/"
],
"link":"https://github.com/aabs/ActorSrcGen",
"author":"Andrew Matthews",
"source":"https://github.com/aabs/ActorSrcGen"
},
"data":{
"goodFor":["Generating source code for actors in C#."],
"csprojDemo":"ActorDemo.csproj",
"csFiles":["Program.cs","DayWorkflow.cs","Person.cs"],
"excludeDirectoryGenerated":[""],
"includeAdditionalFiles":[""]
},
"links":{
"blog":"",
"video":""
}
}
1 change: 1 addition & 0 deletions v2/rscg_examples/ActorSrcGen/nuget.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A C# Source Generator to adapt a simple class to allow it to use TPL Dataflow for robust high performance computation

0 comments on commit 6383097

Please sign in to comment.