Akka.IO.SocketChannel.Register C# (CSharp) Method

Register() public method

public Register ( IActorRef connection, SocketAsyncOperation initialOps ) : void
connection IActorRef
initialOps SocketAsyncOperation
return void
        public void Register(IActorRef connection, SocketAsyncOperation? initialOps)
        {
            _connection = connection;
        }

Usage Example

Esempio n. 1
0
            public void Register(SocketChannel channel, SocketAsyncOperation?initialOps, IActorRef channelActor)
            {
                channel.Register(channelActor, initialOps);

                if (initialOps.HasValue)
                {
                    EnableInterest(channel, initialOps.Value);
                }

                channelActor.Tell(new ChannelRegistration(
                                      enableInterest: op => EnableInterest(channel, op),
                                      disableInterest: op => DisableInterest(channel, op)
                                      ));
            }
All Usage Examples Of Akka.IO.SocketChannel::Register