Esempio n. 1
0
 public ConfigurationInterceptor(Type interfaceType, IoHandler ioHandler, string prefix = null)
 {
     _boxes         = BoxFactory.Discover(interfaceType, ioHandler.ValueHandler);
     _interfaceType = interfaceType;
     _ioHandler     = ioHandler;
     _prefix        = prefix;
 }
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);
 }
Esempio n. 3
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;
 }
Esempio n. 4
0
 public DynamicReader(string basePath, IoHandler ioHandler)
 {
     _basePath  = basePath;
     _ioHandler = ioHandler;
 }
 public ConfigurationInterceptor(IoHandler ioHandler)
 {
     _propertyOptions = PropertyOptions.Discover <TInterface>();
     _ioHandler       = ioHandler;
 }