Exemple #1
0
        /// <summary>
        /// Initializes new instance of <see cref="NetworkChangeAdapter"/>.
        /// </summary>
        public NetworkChangeAdapter()
        {
#if NET45 || NET46 || NETSTANDARD2_0
            _networkAvailabilityChanged = new AbstractionDelegateLookup <INetworkAvailabilityEventArgs, NetworkAvailabilityChangedEventHandler>();
#endif

            _networkAddressChanged = new AbstractionDelegateLookup <NetworkAddressChangedEventHandler>();
        }
 /// <summary>
 /// Initializes new instance of <see cref="NetworkChangeAdapter"/>.
 /// </summary>
 public NetworkChangeAdapter()
 {
     _networkAvailabilityChanged = new AbstractionDelegateLookup <INetworkAvailabilityEventArgs, NetworkAvailabilityChangedEventHandler>();
     _networkAddressChanged      = new AbstractionDelegateLookup <NetworkAddressChangedEventHandler>();
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of <see cref="ConsoleAdapter"/>.
 /// </summary>
 public ConsoleAdapter()
 {
     _cancelKeyPressLookup = new AbstractionDelegateLookup <IConsoleCancelEventArgs, ConsoleCancelEventHandler>();
 }
 public TryMapForDetachment()
 {
     _lookup = new AbstractionDelegateLookup <ITestAbstraction, EventHandler <TestImplementation> >();
 }