Пример #1
0
        /// <summary>
        /// Initializes new instance of <see cref="SocketAsyncEventArgsAdapter"/>.
        /// </summary>
        /// <param name="args">Event args to be used by the adapter.</param>
        public SocketAsyncEventArgsAdapter(SocketAsyncEventArgs args)
            : base(args)
        {
            if (args == null)
            {
                throw new ArgumentNullException(nameof(args));
            }

            _args            = args;
            _completedLookup = new AbstractionEventHandlerLookup <ISocketAsyncEventArgs, SocketAsyncEventArgs>();
        }
 public MapForAttachment()
 {
     _lookup = new AbstractionEventHandlerLookup <ITestAbstraction, TestImplementation>();
 }