private void GrpcCommunicationClientFactory_ClientConnected(object sender, CommunicationClientEventArgs <GrpcCommunicationClient <TClient> > e)
        {
            var channel = e.Client.ChannelEntry.Channel;

            Log.LogDebug("Client {Id} connected: {Target}, {Resolved}, {State}",
                         e.Client.Id, channel.Target, channel.ResolvedTarget, channel.State);
        }
Пример #2
0
 private void OnClientDisconnected(object sender, CommunicationClientEventArgs <IServiceRemotingClient> e)
 {
     this.ClientDisconnected?.Invoke((object)this, new CommunicationClientEventArgs <IServiceRemotingClient>()
     {
         Client = e.Client
     });
 }
 private void _inner_ClientConnected(object sender, CommunicationClientEventArgs <IServiceRemotingClient> e)
 {
     if (ClientConnected != null)
     {
         ClientConnected(sender, e);
     }
 }
Пример #4
0
        /// <summary>
        /// Re-throw ClientConnected from standard client fabric event
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void InnerClientFactory_ClientConnected(object sender, CommunicationClientEventArgs <IServiceRemotingClient> e)
        {
            EventHandler <CommunicationClientEventArgs <IServiceRemotingClient> > clientConnected = this.ClientConnected;

            if (clientConnected == null)
            {
                return;
            }
            clientConnected((object)this, new CommunicationClientEventArgs <IServiceRemotingClient>()
            {
                Client = e.Client
            });
        }
        private void OnFabricTransportClientDisconnected(object sender,
                                                         CommunicationClientEventArgs <IServiceRemotingClient> e)
        {
            var handlers = this.FabricTransportClientDisconnected;

            if (handlers != null)
            {
                handlers(this, new CommunicationClientEventArgs <IServiceRemotingClient>()
                {
                    Client = e.Client
                });
            }
        }
Пример #6
0
        private void OnClientConnected(
            object sender, CommunicationClientEventArgs <WcfCommunicationClient <IServiceRemotingContract> > communicationClientEventArgs)
        {
            var handlers = this.ClientConnected;

            if (handlers != null)
            {
                handlers(
                    this,
                    new CommunicationClientEventArgs <IServiceRemotingClient>()
                {
                    Client = new WcfServiceRemotingClient(communicationClientEventArgs.Client)
                });
            }
        }
Пример #7
0
 private static void ClientConnected(object sender, CommunicationClientEventArgs <WcfCommunicationClient <ICalculator> > e)
 {
     Console.WriteLine();
     Console.WriteLine(@"Client connected to endpoint {0}", e.Client.ResolvedServicePartition.GetEndpoint().Address);
     Console.WriteLine();
 }
 private void WrappedClientDisconnected(object sender, CommunicationClientEventArgs <IServiceRemotingClient> e)
 {
     this.ClientDisconnected?.Invoke(sender, e);
 }
Пример #9
0
 /// <summary>
 /// Triggers the event <see cref="OnClientDisconnected"/>
 /// </summary>
 /// <param name="e"></param>
 public void OnClientDisconnected(CommunicationClientEventArgs <IServiceRemotingClient> e)
 {
     ClientDisconnected?.Invoke(this, e);
 }
 private void OnClientDisconnected(object sender, CommunicationClientEventArgs<WcfCommunicationClient<IServiceRemotingContract>> communicationClientEventArgs)
 {
     var clientDisconnected = ClientDisconnected;
     clientDisconnected?.Invoke(this, new CommunicationClientEventArgs<IServiceRemotingClient>
     {
         Client = new WcfServiceRemotingClient(communicationClientEventArgs.Client)
     });
 }
 private void OnFabricTransportClientConnected(object sender, CommunicationClientEventArgs <FabricTransportServiceRemotingClient> e)
 {
     this.OnClientConnected(e.Client);
 }
Пример #12
0
 private static void ClientDisconnected(object sender, CommunicationClientEventArgs<WcfCommunicationClient<ICalculator>> e)
 {
     Console.WriteLine();
     Console.WriteLine(@"Client disconnected from endpoint {0}", e.Client.ResolvedServicePartition.GetEndpoint().Address);
     Console.WriteLine();
 }
 private void ServiceRemotingClientFactoryWrapper_ClientConnected(object sender, CommunicationClientEventArgs <IServiceRemotingClient> e)
 {
     throw new NotImplementedException();
 }