コード例 #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"));
            }
コード例 #2
0
ファイル: Donors.cs プロジェクト: ahead666/mpx_mobile
 /// <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");
 }