Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Response always zero, help with Async patern
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Romi  
View profile   Translate to Translated (View Original)
 More options Jul 24 2012, 10:05 pm
From: Romi <promi...@gmail.com>
Date: Tue, 24 Jul 2012 19:05:25 -0700 (PDT)
Local: Tues, Jul 24 2012 10:05 pm
Subject: Response always zero, help with Async patern

Hi,

I use a simple patern to return my contents from some providers in my cms
net3.5 webform. The solution is working but the result is always zero from
the contents, I m not sure but it seem be a response delay problem. I have
tested adding a Sleep but no results. Used in web application in App_Code
or Binary same. Tested List, IList,strings same problem. Thanks for your
help.

public class ItemsService : IService<Items>
{
    public object Execute(Items request)//Execute()
    {
        ItemsResponse res = new ItemsResponse();
        res.Items = ItemsList(request.baseclass, request.provider,
request.language);//request.provider
        return res;
    }

    public IList ItemsList(string basename, string provider, string
language)
    {       if(provider==string.Empty)
                provider = Manager.DefaultContentProvider;
            if (language == string.Empty)
                language = "es";
            System.Threading.Thread.CurrentThread.CurrentUICulture = new
System.Globalization.CultureInfo(language);
            Manager manager = new Manager(provider);
            IList data = manager.Content.GetContent(); <== COUNT ALWAYS
ZERO, BUT FULL
            Thread.Sleep(5000);
            return data;                    
    }


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »