Example #1
0
            /// <summary>
            /// Search will return all the list of donors and save it on cache
            /// it has been implemented to make the less possible calls to the Wip service
            /// </summary>
            /// <returns> The cache result(MPXMobile.WipService.getAccountsResponse) </returns>
            public MPXMobile.WipService.getAccountsResponse Search()
            {
                var port = Models.Util.Port();

                WipService.getAccountsRequest acreq = new MPXMobile.WipService.getAccountsRequest();
                var accounts = port.getAccounts(acreq);

                HttpRuntime.Cache.Insert("donors", accounts, null, Cache.NoAbsoluteExpiration, TimeSpan.FromDays(7));
                return((MPXMobile.WipService.getAccountsResponse)HttpRuntime.Cache.Get("donors"));
            }
Example #2
0
 /// <summary>
 /// Search will return all the list of donors and save it on cache
 /// it has been implemented to make the less possible calls to the Wip service 
 /// </summary>
 /// <returns> The cache result(MPXMobile.WipService.getAccountsResponse) </returns>
 public MPXMobile.WipService.getAccountsResponse Search()
 {
     var port = Models.Util.Port();
     WipService.getAccountsRequest acreq = new MPXMobile.WipService.getAccountsRequest();
     var accounts = port.getAccounts(acreq);
     HttpRuntime.Cache.Insert("donors", accounts, null, Cache.NoAbsoluteExpiration, TimeSpan.FromDays(7));
     return (MPXMobile.WipService.getAccountsResponse)HttpRuntime.Cache.Get("donors");
 }