Пример #1
0
        public string GetResourceHash(string sessionKey, Resource resource, string user, string pass)
        {
            //Auth login and IP
            AuthorizeClient(user, pass);

            LocalRepo.SessionKey = sessionKey;
            return(LocalRepo.Hash(resource));
        }
Пример #2
0
        public string GetItemHash(string sessionKey, ItemIdentifier itemId, string user, string pass)
        {
            //Auth login and IP
            AuthorizeClient(user, pass);

            LocalRepo.SessionKey = sessionKey;

            return(LocalRepo.Hash(itemId));
        }