Пример #1
0
        public async Task <IEnumerable <IEthereumFile> > GetAsyncCall(string ownerLogin, string ownerPassword)
        {
            var login    = CastHelper.StringToBytes32(ownerLogin);
            var password = CastHelper.StringToBytes32(ownerPassword);

            var ids = await _contractService.GetFileIdsAsyncCall(login, password);

            return(await GetAsyncCall(ownerLogin, ownerPassword, ids.ToArray()));
        }
Пример #2
0
        public async Task <bool> IsAuthenticatedAsyncCall(string login, string password)
        {
            var byteLogin    = CastHelper.StringToBytes32(login);
            var bytePassword = CastHelper.StringToBytes32(password);

            try
            {
                var responce = await _contractService.GetFileIdsAsyncCall(byteLogin, bytePassword);

                return(true);
            }
            catch (Exception e)
            {
                return(false);
            }
        }