Code Monkey home page Code Monkey logo

signalr.strong's People

Contributors

emmittj avatar mehmetakbulut avatar webcoyote avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

signalr.strong's Issues

Can't build using SourceGenerator, xml documentation and warnings are errors

The code generated by the SourceGenerator creates warnings as it doesn't have XML documentation on it.
If you have "warnings are errors" enabled, then this breaks your build.

I think we need to put a header on the whole file like https://stackoverflow.com/a/2701832

Or maybe just put // <auto-generated /> before the SignalR.Strong namespace (Like on the SignalR.Strong.SourceGenerated namespace below)
https://github.com/mehmetakbulut/SignalR.Strong/blob/master/SignalR.Strong.SourceGenerator/HubGenerator.cs#L33

I've never debugged a source generator before so I'm not too sure.

Error as in build:
image

hasChannelReaderArgument always throws

When using SignalR.Strong.Dynamic for our client and calling a hub method:
public Task TakeAString(string myString);

We get a System.InvalidOperationException with the message This operation is only valid on generic types.
Which stack traces back to here:
https://github.com/mehmetakbulut/SignalR.Strong/blob/master/SignalR.Strong.Dynamic/HubInterceptor.cs#L53

From the docs it looks like we should check IsGenericType before calling GetGenericTypeDefinition.
https://docs.microsoft.com/en-us/dotnet/api/system.type.getgenerictypedefinition?view=net-5.0

Switching to SignalR.Strong.SourceGenerator works.
Can PR this if you'd like, thanks for the project!

Question: Using with Blazor WebAssembly

hi

Great library btw, Thank you!

I tried to use it as SignalR client in a Blazor example (used ExpressiveHub variant) and it looks like works properly.

So, am I guess right that it will not able to run Dynamic (it seems has a lot of platform-specific libraries in NuGet) or SourceGen (probably Roslyn may not work or be too heavy for webassembly) hubs on WebAssembly platform?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.