/// <summary> /// Register a hit for a function /// </summary> /// <param name="iFunctionName">The name of the function to register the hit for</param> /// <param name="iSource">The source of the request, for example ipaddress</param> /// <returns></returns> public Boolean RegisterHit(String iFunctionName, String iSource) { FunctionHit pFHtHit = FunctionHit.Create(iFunctionName, iSource); FunctionHitsTable.CreateIfNotExists(); TableOperation pTOnInsert = TableOperation.Insert(pFHtHit); TableResult pTRtResult; try { pTRtResult = FunctionHitsTable.Execute(pTOnInsert); switch (pTRtResult.HttpStatusCode) { case 200: case 204: { return(true); } default: { return(false); } } } catch { return(false); } }