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