Rob Beardsworth [MSFT]
Guest
|
Posted:
Mon Jul 25, 2005 4:52 pm Post subject:
RE: how to know if many persistent 's connection are open on |
|
|
Sorry to tell you this, but the content of the contextArray is NOT meant to
be read by your code. If you change the contents of it in many ways, we
will throw errors at the next usage. If you need to keep hold of different
persistent connections, then you will need different copies of the context
array and keep your own map of "whatever you want" to the ContextArrays.
The ContextId is always 666, in this version, and has nothing to do with
the persistent connection it is the identifying mark of the Context Array.
Rob Beardsworth
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
--------------------
From: "mikolajczyk"<fake.email@mail.fr>
Subject: how to know if many persistent 's connection are open on HIS2004 ?
Date: Mon, 25 Jul 2005 09:23:50 -0500
I would like to identify on .NET the differents persistent's connection
open
on HIS2004.
I try to use many persistent's connection with thread on .NET.
To identify the connection, I use the descriptor :
varConnType="OPEN";
_cc.WriteContext ("CONNTYPE", varConnType, ref contextArray);
ds = (Microsoft.HostIntegration.TI.ContextDescriptor)contextArray[0];
short contextId= ds.sContextID;
Console.Writeln("context ID : " + contextId);
The context ID is always the same 666.
Thank you for your help. |
|