Esempio n. 1
0
 public InterfaceInterceptor(Type interfaceType, IoHandler ioHandler, string prefix = null)
 {
     _boxes     = BoxFactory.Discover(interfaceType, ioHandler.ValueHandler, prefix);
     _ioHandler = ioHandler;
     _prefix    = prefix;
     _reader    = new DynamicReader(prefix, ioHandler);
     _writer    = new DynamicWriter(prefix, ioHandler);
 }
Esempio n. 2
0
 public InterfaceInterceptor(Type interfaceType, IoHandler ioHandler, string prefix = null)
 {
     _boxes     = BoxFactory.Discover(interfaceType, ioHandler.ValueHandler, prefix);
     _ioHandler = ioHandler;
     _prefix    = prefix;
     _reader    = new DynamicReader(prefix, ioHandler);
     _writer    = new DynamicWriter(prefix, ioHandler);
     _isInpc    = interfaceType.GetInterface(nameof(INotifyPropertyChanged)) != null;
 }