Esempio n. 1
0
        public Task <StoreResult> InsertWebHookAsync(string user, WebHook webHook)
        {
            if (user == null)
            {
                throw new ArgumentNullException("user");
            }
            if (webHook == null)
            {
                throw new ArgumentNullException("WebHook");
            }

            manager.CreateWebHook(
                new EpiWebHook()
            {
                User    = NormalizeKey(user),
                WebHook = webHook
            }
                );
            return(Task.FromResult(StoreResult.Success));
        }