예제 #1
0
파일: Binder.cs 프로젝트: Pravin044/TwinCat
 protected Binder(IInternalSymbolProvider provider, ISymbolFactory symbolFactory, bool useVirtualInstances)
 {
     if (provider == null)
     {
         throw new ArgumentNullException("provider");
     }
     if (symbolFactory == null)
     {
         throw new ArgumentNullException("symbolFactory");
     }
     if ((provider.SymbolsInternal != null) && (provider.SymbolsInternal.Mode != InstanceCollectionMode.PathHierarchy))
     {
         throw new ArgumentException($"Symbol provider has to be in Mode: {InstanceCollectionMode.PathHierarchy}", "provider");
     }
     this._provider            = provider;
     this._useVirtualInstances = useVirtualInstances;
     this._symbolFactory       = symbolFactory;
 }
예제 #2
0
 internal AdsBinder(AmsAddress imageBaseAddress, IInternalSymbolProvider provider, ISymbolFactory symbolFactory, bool useVirtualInstance) : base(provider, symbolFactory, useVirtualInstance)
 {
     this._imageBaseAddress = imageBaseAddress;
 }