Exemplo n.º 1
0
        public RemoteNodeTopology(IGrpcNode node, IMessageFabric messageFabric)
        {
            _node          = node;
            _messageFabric = messageFabric;

            _entries     = new Dictionary <long, TopologyEntry>();
            _receiverMap = new Dictionary <ReceiverKey, long>();
        }
 public static ValueTask SendWelcome(this IGrpcNode node, IGrpcHostNode hostNode)
 {
     return(node.Writer.WriteAsync(new TransportMessage {
         Welcome = new Welcome {
             Node = new Node().Initialize(hostNode)
         }
     }));
 }
Exemplo n.º 3
0
        public GrpcClient(IGrpcHostConfiguration hostConfiguration, IGrpcHostNode hostNode, TransportService.TransportServiceClient client, IGrpcNode node)
        {
            _hostConfiguration = hostConfiguration;
            _hostNode          = hostNode;
            _client            = client;
            _node = node;

            _runTask = Task.Run(() => RunAsync());
        }
 public RemoteNodeMessageReceiver(IGrpcNode node, string queueName, long receiverId)
 {
     _node       = node;
     _queueName  = queueName;
     _receiverId = receiverId;
 }
 public static ValueTask DeliverMessage(this IGrpcNode node, GrpcTransportMessage message)
 {
     return(node.Writer.WriteAsync(message.Message));
 }