Exemplo n.º 1
0
 public async Task <ClientKeyResult> GetClientKeyAsync(string SessionKey, string ProgramId, string ClientName, string CompanyCode, string LoginUserCode)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await dbfunctionProcessor.CreateClientKeyAsync(new ClientKeySearch {
             ProgramId = ProgramId,
             ClientName = ClientName,
             CompanyCode = CompanyCode,
             LoginUserCode = LoginUserCode,
         }, token);
         return new ClientKeyResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             ClientKey = result,
         };
     }, logger));
 }
Exemplo n.º 2
0
 public async Task <byte[]> GetClientKey(ClientKeySearch option, CancellationToken token)
 => await dbfunctionProcessor.CreateClientKeyAsync(option, token);