ISCLChallengeResponseSuccess example for C#
//LEADDICOMNet1 is a predefined LEADDicomNet object
private void LEADDICOMNet1_NetExternalAuthenticateISCL(int hNet, ref object
nChallenge, ref object nResponse, ref object nParameter)
{
nResponse = Convert.ToInt64(nChallenge) + Convert.ToInt64(nParameter);
LEADDICOMNet1.ISCLChallengeResponseSuccess
= true;
}
private
decimal GetRandom()
{
decimal RandVal = 0M;
Random RandomGenerator = new Random () ;
RandVal = (decimal)RandomGenerator.NextDouble() * 0X10000;
RandVal = (decimal)RandVal * 0X10000 + (decimal)RandomGenerator.NextDouble()
* 0X10000;
RandVal = (decimal)RandVal * 0X10000 + (decimal)RandomGenerator.NextDouble()
* 0X10000;
RandVal = (decimal)RandVal * 0X10000 + (decimal)RandomGenerator.NextDouble()
* 0X10000;
return RandVal;
}
//LEADDICOMNet1 is a predefined LEADDicomNet object
private
void LEADDICOMNet1_NetGetChallengeISCL(int hNet, ref object nChallenge,
ref object nParameter)
{
nChallenge = GetRandom() + System.Convert.ToDecimal(nParameter);
LEADDICOMNet1.ISCLChallengeResponseSuccess
= true;
}
//LEADDICOMNet1 is a predefined LEADDicomNet object
private
void LEADDICOMNet1_NetInternalAuthenticateISCL(int hNet, ref object nChallenge,
ref object nResponse, ref object nParameter)
{
nResponse = Convert.ToInt64(nChallenge) + Convert.ToInt64(nParameter);
LEADDICOMNet1.ISCLChallengeResponseSuccess
= true;
}