Nats support
See original GitHub issueWill there be Nats support in the future? For Example
using JsonRpc.Core;
using JsonRpc.Router;
using JsonRpc.Router.Abstractions;
using JsonRpc.Router.Defaults;
namespace TecNotificationProcessing.NatsProcessing
{
public interface IJRpcService
{
Task<RpcResponse> ProcessRequestAsync(RpcRequest request);
}
public class JRpcService : IJRpcService
{
private readonly IServiceProvider _serviceProvider;
private readonly IRpcInvoker _invoker;
private readonly IRouteContext _routeContext;
public JRpcService(IRpcRouteProvider routeProvider, IServiceProvider serviceProvider, IRpcInvoker invoker)
{
_invoker = invoker ?? throw new ArgumentNullException(nameof(invoker)); ;
_serviceProvider = serviceProvider ?? throw new ArgumentNullException(nameof(serviceProvider)); ;
_routeContext = new DefaultRouteContext(null, null, routeProvider ?? throw new ArgumentNullException(nameof(routeProvider)));
}
public async Task<RpcResponse> ProcessRequestAsync(RpcRequest request)
{
return await _invoker.InvokeRequestAsync(request, RpcPath.Default, _routeContext, _serviceProvider);
}
}
}
Issue Analytics
- State:
- Created 6 months ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
Support
Community Support for NATS and Clients. You can ask questions in our community forums in Slack or Google Groups, both of which have...
Read more >Contact the Nationals | Washington Nationals
Need help purchasing Single-Game Tickets, or have questions? Call 202-675-NATS(6287) and select menu option 2. Nationals representatives will be available ...
Read more >nats-io/nats-server
NATS is a simple, secure and performant communications system for digital systems, services and devices. NATS is part of the Cloud Native Computing ......
Read more >Synadia Control Plane
Support covers NATS, JetStream, Key/Value Store, Object Store, and clients: Go, JavaScript, Java, Net, Python, Rust, C, and C++. Core Capabilities. Synadia ...
Read more >NATS Messaging - Wikipedia
NATS is an open-source messaging system The NATS server is written in the Go programming language. Client libraries to interface with the server...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have put up a PR for a potential fix to help out your situation in #115 Take a look and let me know what you think @zykovkirill
@zykovkirill Version 5.1.5 has the PR changes in it
For your questions, if you can supply me with some code for a NatsClientBuilder and NatsRpcTransportClient, I can integrate them in. Im just not familiar with Nats. Then we can go back and forth on any feedback