Skip to content

Small example of using the SignalRSwaggerGen attributes for methods. Since I have little experience with attributes in general and there is little documentation on SignalRSwaggerGen, using these attributes led to a lot of headaches. I hope this helps someone.

Notifications You must be signed in to change notification settings

Gila-Johanna-Hofmann/SignalRSwaggerGenAttributeExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

SignalRSwaggerGen Attribute Example

Small example of using the SignalRSwaggerGen attributes for methods. Since I have little experience with attributes in general and there is little documentation on SignalRSwaggerGen, using these attributes led to a some headaches. I hope this helps someone.

Background

For a .NET project utilizing SignalR, some of the SignalR endpoints/methods were integrated into the Swagger documentation of the API, using the SignalRSwaggerGen library by @essencebit and the attributes it provides.

My problem

When I tried to use SignalRReturn and SignalRParam, I got error CS0592, but I had a hard time understanding what I had done wrong when applying the attributes.

Solution

See the code snippet.

I hope this saves someone some time and helps to understand attributes better!

About

Small example of using the SignalRSwaggerGen attributes for methods. Since I have little experience with attributes in general and there is little documentation on SignalRSwaggerGen, using these attributes led to a lot of headaches. I hope this helps someone.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages