2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-26 21:13:13 +00:00
This commit is contained in:
2019-07-07 02:49:34 +03:00
parent 08e95bd4dc
commit 8763ac805e
4 changed files with 56 additions and 15 deletions

View File

@ -1,6 +1,7 @@
using Esiur.Data;
using Esiur.Engine;
using Esiur.Resource;
using Esiur.Security.Authority;
using Esiur.Security.Membership;
using System;
using System.Collections.Generic;
@ -25,12 +26,23 @@ namespace Test
return new AsyncReply<byte[]>(DC.ToBytes("1234"));
}
public AsyncReply<bool> Login(Session session)
{
return new AsyncReply<bool>(true);
}
public AsyncReply<bool> Logout(Session session)
{
return new AsyncReply<bool>(true);
}
public AsyncReply<bool> Trigger(ResourceTrigger trigger)
{
return new AsyncReply<bool>(true);
}
public AsyncReply<bool> UserExists(string username)
public AsyncReply<bool> UserExists(string username, string domain)
{
return new AsyncReply<bool>(username == "demo");
}