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)
));
}