mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-06-26 21:13:13 +00:00
iAuth
This commit is contained in:
@ -127,12 +127,12 @@ namespace Test
|
||||
}
|
||||
|
||||
|
||||
|
||||
static AsyncReply<object> Authenticator(Map<IIPAuthPacketIAuthHeader, object> x)
|
||||
// AuthorizationRequest, AsyncReply<object>
|
||||
static AsyncReply<object> Authenticator(AuthorizationRequest x)
|
||||
{
|
||||
Console.WriteLine($"Authenticator: {x[IIPAuthPacketIAuthHeader.Clue]}");
|
||||
Console.WriteLine($"Authenticator: {x.Clue}");
|
||||
|
||||
var format = (IIPAuthPacketIAuthFormat)x[IIPAuthPacketIAuthHeader.RequiredFormat];
|
||||
var format = x.RequiredFormat;
|
||||
|
||||
if (format == IIPAuthPacketIAuthFormat.Number)
|
||||
return new AsyncReply<object>(Convert.ToInt32(Console.ReadLine()));
|
||||
|
Reference in New Issue
Block a user