예제 #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;
 }
예제 #5
0
 public ConfigurationInterceptor(IoHandler ioHandler)
 {
     _propertyOptions = PropertyOptions.Discover <TInterface>();
     _ioHandler       = ioHandler;
 }