@@ -388,35 +388,42 @@ public async Task<bool> ConnectAsync()
388388 this . notifyOpcUaClientListeners ( ) ;
389389 Logger . Info ( "Read Binaries" ) ;
390390 TypeDictionaries . ReadOpcBinary ( ) ;
391- this . ClientState . setState ( OpcUaConnectionState . Connected , "Read DataTypes" ) ;
392- this . ClientStateHistory . Add ( this . ClientState . Copy ( ) ) ;
393- this . notifyOpcUaClientListeners ( ) ;
394- Logger . Info ( "Read DataTypes" ) ;
395- TypeDictionaries . ReadDataTypes ( ) ;
396- this . ClientState . setState ( OpcUaConnectionState . Connected , "Read EventTypes" ) ;
397- this . ClientStateHistory . Add ( this . ClientState . Copy ( ) ) ;
398- this . notifyOpcUaClientListeners ( ) ;
399- Logger . Info ( "Read EventTypes" ) ;
400- TypeDictionaries . ReadEventTypes ( ) ;
401- this . ClientState . setState ( OpcUaConnectionState . Connected , "Read InterfaceTypes" ) ;
402- this . ClientStateHistory . Add ( this . ClientState . Copy ( ) ) ;
403- this . notifyOpcUaClientListeners ( ) ;
404- Logger . Info ( "Read InterfaceTypes" ) ;
405- TypeDictionaries . ReadInterfaceTypes ( ) ;
406- this . ClientState . setState ( OpcUaConnectionState . Connected , "Read ObjectTypes" ) ;
407- this . ClientStateHistory . Add ( this . ClientState . Copy ( ) ) ;
408- this . notifyOpcUaClientListeners ( ) ;
409- Logger . Info ( "Read ObjectTypes" ) ;
410- TypeDictionaries . ReadObjectTypes ( ) ;
411- this . ClientState . setState ( OpcUaConnectionState . Connected , "Read ReferenceTypes" ) ;
412- this . ClientStateHistory . Add ( this . ClientState . Copy ( ) ) ;
413- Logger . Info ( "Read ReferenceTypes" ) ;
414- TypeDictionaries . ReadReferenceTypes ( ) ;
415- this . ClientState . setState ( OpcUaConnectionState . Connected , "Read VariableTypes" ) ;
416- this . ClientStateHistory . Add ( this . ClientState . Copy ( ) ) ;
417- this . notifyOpcUaClientListeners ( ) ;
418- Logger . Info ( "Read VariableTypes" ) ;
419- TypeDictionaries . ReadVariableTypes ( ) ;
391+ if ( this . app . ActiveConfiguration . OPCConnection . ResolveBinariesOnly )
392+ {
393+ Logger . Info ( "Skip Reading Objects, ObjectTypes, Variables, VariableTypes, Interfaces and References" ) ;
394+ }
395+ else
396+ {
397+ this . ClientState . setState ( OpcUaConnectionState . Connected , "Read DataTypes" ) ;
398+ this . ClientStateHistory . Add ( this . ClientState . Copy ( ) ) ;
399+ this . notifyOpcUaClientListeners ( ) ;
400+ Logger . Info ( "Read DataTypes" ) ;
401+ TypeDictionaries . ReadDataTypes ( ) ;
402+ this . ClientState . setState ( OpcUaConnectionState . Connected , "Read EventTypes" ) ;
403+ this . ClientStateHistory . Add ( this . ClientState . Copy ( ) ) ;
404+ this . notifyOpcUaClientListeners ( ) ;
405+ Logger . Info ( "Read EventTypes" ) ;
406+ TypeDictionaries . ReadEventTypes ( ) ;
407+ this . ClientState . setState ( OpcUaConnectionState . Connected , "Read InterfaceTypes" ) ;
408+ this . ClientStateHistory . Add ( this . ClientState . Copy ( ) ) ;
409+ this . notifyOpcUaClientListeners ( ) ;
410+ Logger . Info ( "Read InterfaceTypes" ) ;
411+ TypeDictionaries . ReadInterfaceTypes ( ) ;
412+ this . ClientState . setState ( OpcUaConnectionState . Connected , "Read ObjectTypes" ) ;
413+ this . ClientStateHistory . Add ( this . ClientState . Copy ( ) ) ;
414+ this . notifyOpcUaClientListeners ( ) ;
415+ Logger . Info ( "Read ObjectTypes" ) ;
416+ TypeDictionaries . ReadObjectTypes ( ) ;
417+ this . ClientState . setState ( OpcUaConnectionState . Connected , "Read ReferenceTypes" ) ;
418+ this . ClientStateHistory . Add ( this . ClientState . Copy ( ) ) ;
419+ Logger . Info ( "Read ReferenceTypes" ) ;
420+ TypeDictionaries . ReadReferenceTypes ( ) ;
421+ this . ClientState . setState ( OpcUaConnectionState . Connected , "Read VariableTypes" ) ;
422+ this . ClientStateHistory . Add ( this . ClientState . Copy ( ) ) ;
423+ this . notifyOpcUaClientListeners ( ) ;
424+ Logger . Info ( "Read VariableTypes" ) ;
425+ TypeDictionaries . ReadVariableTypes ( ) ;
426+ }
420427 this . ClientState . setState ( OpcUaConnectionState . Connected , "Read TypeDictionary finished" ) ;
421428 this . ClientStateHistory . Add ( this . ClientState . Copy ( ) ) ;
422429 this . notifyOpcUaClientListeners ( ) ;
0 commit comments