Skip to content

Commit

Permalink
Merge pull request #315 from ignatandrei/313-typedsignalr
Browse files Browse the repository at this point in the history
313 typedsignalr
  • Loading branch information
ignatandrei authored Oct 27, 2024
2 parents 79fc1a1 + e2024f5 commit 9d432ed
Show file tree
Hide file tree
Showing 49 changed files with 2,635 additions and 42 deletions.
47 changes: 31 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# RSCG - 162 Examples of Roslyn Source Code Generators / 13 created by Microsoft /
# RSCG - 163 Examples of Roslyn Source Code Generators / 13 created by Microsoft /

## Latest Update : 2024-10-21 => 21 October 2024
## Latest Update : 2024-10-26 => 26 October 2024

If you want to see examples with code, please click ***[List V2](https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG)***

If you want just those from Microsoft, please click ***[Microsoft](https://ignatandrei.github.io/RSCG_Examples/v2/docs/category/microsoft-examples)***

If you want to see by category, please click ***[category](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples)***
or click any category below
[actor](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#actor) -[aop](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#aop) -[api](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#api) -[bitwise](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#bitwise) -[blazor](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#blazor) -[builder](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#builder) -[codetostring](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#codetostring) -[constructor](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#constructor) -[database](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#database) -[dependencyinjection](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#dependencyinjection) -[disposer](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#disposer) -[enhancementclass](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#enhancementclass) -[enhancementproject](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#enhancementproject) -[enum](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#enum) -[filestocode](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#filestocode) -[functionalprogramming](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#functionalprogramming) -[hangfire](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#hangfire) -[interface](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#interface) -[mapper](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#mapper) -[mediator](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#mediator) -[mvvm](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#mvvm) -[optimizer](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#optimizer) -[primitiveobsession](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#primitiveobsession) -[serializer](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#serializer) -[templating](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#templating) -[tests](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#tests) -
[actor](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#actor) -[aop](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#aop) -[api](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#api) -[bitwise](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#bitwise) -[blazor](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#blazor) -[builder](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#builder) -[codetostring](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#codetostring) -[constructor](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#constructor) -[database](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#database) -[dependencyinjection](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#dependencyinjection) -[disposer](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#disposer) -[enhancementclass](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#enhancementclass) -[enhancementproject](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#enhancementproject) -[enum](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#enum) -[filestocode](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#filestocode) -[functionalprogramming](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#functionalprogramming) -[hangfire](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#hangfire) -[interface](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#interface) -[mapper](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#mapper) -[mediator](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#mediator) -[mvvm](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#mvvm) -[optimizer](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#optimizer) -[primitiveobsession](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#primitiveobsession) -[serializer](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#serializer) -[signalr](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#signalr) -[templating](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#templating) -[tests](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#tests) -


## If you have a Roslyn Source Code Generator, please create an issue.
Expand All @@ -20,8 +20,30 @@ If you want to be notified each time I add a new RSCG example , please click htt

## Content

Those are the 162 Roslyn Source Code Generators that I have tested you can see and download source code example.
Those are the 163 Roslyn Source Code Generators that I have tested you can see and download source code example.
( including 13 from Microsoft )
### 163. [TypedSignalR.Client](https://ignatandrei.github.io/RSCG_Examples/v2/docs/TypedSignalR.Client) , in the [SignalR](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#signalr) category

Generated on : 2024-10-26 => 26 October 2024

<details>
<summary>Expand</summary>



Author: nenoNaninu

C# Source Generator to create strongly typed SignalR Client.

Nuget: [https://www.nuget.org/packages/TypedSignalR.Client/](https://www.nuget.org/packages/TypedSignalR.Client/)


Link: [https://ignatandrei.github.io/RSCG_Examples/v2/docs/TypedSignalR.Client](https://ignatandrei.github.io/RSCG_Examples/v2/docs/TypedSignalR.Client)

Source: [https://github.com/nenoNaninu/TypedSignalR.Client](https://github.com/nenoNaninu/TypedSignalR.Client)

</details>

### 162. [MinimalHelpers.Routing.Analyzers](https://ignatandrei.github.io/RSCG_Examples/v2/docs/MinimalHelpers.Routing.Analyzers) , in the [API](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#api) category

Generated on : 2024-10-21 => 21 October 2024
Expand Down Expand Up @@ -4091,42 +4113,35 @@ Why I have not tested : depends on Microsoft.Extensions.Localization
https://github.com/ignatandrei/RSCG_Examples/issues/new?title=TypealizR&body=https://github.com/earloc/TypealizR


50) [TypedSignalR]( https://github.com/nenoNaninu/TypedSignalR.Client) , https://github.com/nenoNaninu/TypedSignalR.Client

Why I have not tested : later

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=TypedSignalR&body=https://github.com/nenoNaninu/TypedSignalR.Client


51) [UnitTestBlazor]( https://github.com/bUnit-dev/bUnit) , https://github.com/bUnit-dev/bUnit
50) [UnitTestBlazor]( https://github.com/bUnit-dev/bUnit) , https://github.com/bUnit-dev/bUnit

Why I have not tested : issue opened

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=UnitTestBlazor&body=https://github.com/bUnit-dev/bUnit


52) [ValueLink]( https://github.com/archi-Doc/ValueLink) , https://github.com/archi-Doc/ValueLink
51) [ValueLink]( https://github.com/archi-Doc/ValueLink) , https://github.com/archi-Doc/ValueLink

Why I have not tested : too complicated for me, need help

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=ValueLink&body=https://github.com/archi-Doc/ValueLink


53) [VisitorPatternGenerator]( https://github.com/hikarin522/VisitorPatternGenerator/) , https://github.com/hikarin522/VisitorPatternGenerator/
52) [VisitorPatternGenerator]( https://github.com/hikarin522/VisitorPatternGenerator/) , https://github.com/hikarin522/VisitorPatternGenerator/

Why I have not tested : issue opened

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=VisitorPatternGenerator&body=https://github.com/hikarin522/VisitorPatternGenerator/


54) [Visor]( https://github.com/Tinkoff/Visor) , https://github.com/Tinkoff/Visor
53) [Visor]( https://github.com/Tinkoff/Visor) , https://github.com/Tinkoff/Visor

Why I have not tested : too complicated for me, need help

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=Visor&body=https://github.com/Tinkoff/Visor


55) [WrapperValueObject]( https://github.com/martinothamar/WrapperValueObject) , https://github.com/martinothamar/WrapperValueObject
54) [WrapperValueObject]( https://github.com/martinothamar/WrapperValueObject) , https://github.com/martinothamar/WrapperValueObject

Why I have not tested : not maintained as in readme

Expand Down
3 changes: 2 additions & 1 deletion v2/GeneratorData/Category.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public enum Category
AOP,
Bitwise,
Actor,
Mediator=26
Mediator=26,
SignalR=27,
}

6 changes: 6 additions & 0 deletions v2/RSCGExamplesData/GeneratorDataRec.json
Original file line number Diff line number Diff line change
Expand Up @@ -972,5 +972,11 @@
"Category": 15,
"dtStart": "2024-10-21T00:00:00",
"show": true
},
{
"ID": "TypedSignalR.Client",
"Category": 27,
"dtStart": "2024-10-26T00:00:00",
"show": true
}
]
5 changes: 0 additions & 5 deletions v2/RSCGExamplesData/NoExample.json
Original file line number Diff line number Diff line change
Expand Up @@ -649,11 +649,6 @@
"name": "AttributeFactoryGenerator https://github.com/PaulBraetz/AttributeFactoryGenerator",
"why": "too complicated for me, need help"
},
{
"ID": 131,
"name": "TypedSignalR https://github.com/nenoNaninu/TypedSignalR.Client",
"why": "later"
},
{
"ID": 132,
"name": "UnitTestBlazor https://github.com/bUnit-dev/bUnit",
Expand Down
68 changes: 68 additions & 0 deletions v2/book/examples/TypedSignalR.Client.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@

<h1>RSCG nr 163 : TypedSignalR.Client</h1>

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

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

<p>Author :nenoNaninu</p>

<p>Source : <a href="https://github.com/nenoNaninu/TypedSignalR.Client" target="_blank">https://github.com/nenoNaninu/TypedSignalR.Client</a> </p>

<h2>About</h2>

Creating typed Signal R clients

<h2>
How to use
</h2>
<h3>
Add reference to the <a href="https://www.nuget.org/packages/TypedSignalR.Client/" target="_blank">TypedSignalR.Client</a> in the csproj
</h3>
<img src="images/TypedSignalR.Client/TestSignalRConsole.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/TypedSignalR.Client/csFiles/Program.cs.png" width="580" height="580" />
<hr />
<h3>And here are the <i>generated</i> files</h3>

<br />
The file <i>generated</i> is TypedSignalR.Client.Components.Generated.cs
<br />
<img src="images/TypedSignalR.Client/generated/TypedSignalR.Client.Components.Generated.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is TypedSignalR.Client.HubConnectionExtensions.Binder.Generated.cs
<br />
<img src="images/TypedSignalR.Client/generated/TypedSignalR.Client.HubConnectionExtensions.Binder.Generated.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is TypedSignalR.Client.HubConnectionExtensions.Generated.cs
<br />
<img src="images/TypedSignalR.Client/generated/TypedSignalR.Client.HubConnectionExtensions.Generated.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is TypedSignalR.Client.HubConnectionExtensions.HubInvoker.Generated.cs
<br />
<img src="images/TypedSignalR.Client/generated/TypedSignalR.Client.HubConnectionExtensions.HubInvoker.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/TypedSignalR.Client'>
https://ignatandrei.github.io/RSCG_Examples/v2/docs/TypedSignalR.Client
</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>

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 162 RSCG with examples =>
This is the list of 163 RSCG with examples =>
</h1>

<table >
Expand Down Expand Up @@ -674,6 +674,10 @@ <h1>
<td>162</td>
<td><a href="examples/MinimalHelpers.Routing.Analyzers.html">MinimalHelpers.Routing.Analyzers</a></td>
</tr>
<tr>
<td>163</td>
<td><a href="examples/TypedSignalR.Client.html">TypedSignalR.Client</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 @@ -176,6 +176,7 @@ input-files:
- examples/Dusharp.html
- examples/Immediate.Handlers.html
- examples/MinimalHelpers.Routing.Analyzers.html
- examples/TypedSignalR.Client.html

# or you may use input-file: with a single value
# defaults:
Expand Down
22 changes: 22 additions & 0 deletions v2/rscg_examples/TypedSignalR.Client/description.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"generator":{
"name":"TypedSignalR.Client",
"nuget":[
"https://www.nuget.org/packages/TypedSignalR.Client/"
],
"link":"https://github.com/nenoNaninu/TypedSignalR.Client",
"author":"nenoNaninu",
"source":"https://github.com/nenoNaninu/TypedSignalR.Client"
},
"data":{
"goodFor":["Creating typed Signal R clients"],
"csprojDemo":"TestSignalRConsole.csproj",
"csFiles":["Program.cs"],
"excludeDirectoryGenerated":[""],
"includeAdditionalFiles":[""]
},
"links":{
"blog":"",
"video":""
}
}
1 change: 1 addition & 0 deletions v2/rscg_examples/TypedSignalR.Client/nuget.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
C# Source Generator to create strongly typed SignalR Client.
Loading

0 comments on commit 9d432ed

Please sign in to comment.