I am having all kinds of problems with the eBay .NET SDK (http://go.developer.ebay.com/developers/ebay/documentation-tools/sdks/dotnet)
Posted this question the other day:
HttpRuntime.Cache doesn't appear to be working
Now after a lot more investigation, it would seem that in fact calling the eBay API is clearing my .NET Session and Cache data, restarting the application in fact.
WHY?!!
The function which seems to be at fault is my method for grabbing eBay categories. The question above first came about because I was finding I was unable to cache the incredibly slow response I get from eBay... however, it seems I can cache it, but something in the function is causing the application to restart.
Here's how I get categories:
Shared Function DisplayCategories(Optional ParentId As Integer = 0, Optional Level As Integer = 1) As CategoryTypeCollection
Dim Categories As New CategoryTypeCollection
Dim apiContext As ApiContext = Credentials.GetApiContext()
Dim apicall As New GetCategoriesCall(apiContext) With {
.EnableCompression = True,
.Site = SiteCodeType.UK,
.LevelLimit = Level
}
If ParentId <> 0 Then _
apicall.CategoryParent = New StringCollection({"" & ParentId & ""})
apicall.DetailLevelList.Add(DetailLevelCodeType.ReturnAll)
'SiteCodeType.UK, New StringCollection({"1"}), 10, False
Categories = apicall.GetCategories()
Return Categories
End Function
All caching code removed for simplicity, but I can assure you, running this function clears my cache and any Session data.
Any idea why?!!