File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,20 @@ public async Task Connect()
3737 var qpClientTypeInfo = QpClientTypeManager . Instance . Get ( ConnectionInfo . QpClientTypeName ) ;
3838 if ( qpClientTypeInfo == null )
3939 throw new ApplicationException ( $ "未找到类型为[{ ConnectionInfo . QpClientTypeName } ]的QP客户端类型!") ;
40+
41+ //替换基础架构
42+ if ( ConnectionInfo . QpClientOptions . InstructionSet != null )
43+ {
44+ for ( var i = 0 ; i < ConnectionInfo . QpClientOptions . InstructionSet . Length ; i ++ )
45+ {
46+ var item = ConnectionInfo . QpClientOptions . InstructionSet [ i ] ;
47+ if ( item . Id == Base . Instruction . Id )
48+ {
49+ ConnectionInfo . QpClientOptions . InstructionSet [ i ] = Base . Instruction ;
50+ break ;
51+ }
52+ }
53+ }
4054 QpClient = ConnectionInfo . QpClientOptions . CreateClient ( ) ;
4155 QpClient . Disconnected += QpClient_Disconnected ;
4256 try
You can’t perform that action at this time.
0 commit comments