I would like to start a long-running command-line process in my Grails application, log each line of output to the console when it arrives, and do other stuff asynchronously, while the process and logging activities keep going. (At some point, I'll want to do something else with each line of output, like log to a file or look for certain...
Srry for my English.
I am creating some Django application, that does various long computations with uploaded files. I don't want make user wait for the file to be handled - i just want to show him some page like 'file is being parsed'.
So, how can i make an asynchronous function call from a view?
Something that may look like that:
d...
I want to have an exception handling approach in my Asynchronous programming (beginInvoke/endInvoke) wherein if any one of the thread(beginInvoke) fails, then I want all other asynchrounous processing thread to stop working. Please suggest some solution?, below I am attaching my sample code also:
public List<ThreadResultDto> SendMailAsy...
howzit!
I'm a web developer that has been recently requested to develop a Windows forms application, so please bear with me (or dont laugh!) if my question is a bit elementary.
After many sessions with my client, we eventually decided on an interface that contains a tabcontrol with 5 tabs. Each tab has a datagridview that may eventual...
I'm calling a WCF service from a Silverlight client, therefore making all the calls async.
When the WCF service returns an ExceptionFault, the error object gets populated in the arguments to the Completed event handler...
proxy.UpdateCompleted += (o, e) =>
{
if(e.Error != null)
.... do something
}
what is the best ...
Providing Synchronous and Asynchronous versions of Method in c# asks how to provide an async version of a method.
One of the answers suggests that class library developers should avoid providing the async method, if possible, based on the single responsibility principle.
Is this true?
Should I NOT provide async versions of methods? ...
Hello. Today I have a WCF question, though it probably pertains to other Networking models in .NET as well.
I have a WCF service that exposes a Send(Message) OperationContract, which is OneWay = true. Now this service has a callback channel to return Messages to the client.
Anyway I am trying (successfully) to call this Send method fr...
I was reading through spring framework documentation and found a section on raising events in Spring using ApplicationContext. After reading few paragraphs I found that spring events are raised synchronously. Is there any way to raise asynchronous events? your help is much appreciated. I am looking something similar which would help me t...
How do I get a UIImage from a small image file on my server (can be .jpg or .png)?
...
Hi,
I have been working with syncron calls in AjaxPro, and I am now looking into asyncron calls. I have been looking at the example Here
My question is how do I pass variables to my ajaxpro method? I would like to add some properties to the AjaxMethod MyMethod, but how is it done?
<script type="text/javascript">
function callback(res) ...
Say i have cmdlet1 and cmdlet2, both are long running tasks. Normally i would have a batch file which calls the two cmdlets in order:
call powershell cmdlet1
call powershell cmdlet2
Is there anyway to set them off asynchronously?
...
Is there a way for a PowerShell job to report progress or to trigger events before it is complete? I just started playing around with executing background jobs in PowerShell and am wondering how far I can push the capability.
...
I'm wondering if in my Async Sockets in c#, receiving 0 bytes in the EndRead call means the server has actually disconnected us?
Many Examples I see suggest that this is the case, but I'm receiving disconnects a lot more frequent that I would be expecting.
Is this code correct? Or does endResult <= 0 not really mean anything about the...
In integration tests, asynchronous processes (methods, external services) make for a very tough test code. If instead, I factored out the async part and create a dependency and replace it with a synchronous one for the sake of testing, would that be a "good thing"?
By replacing the async process with a synchronous one, am I not testing...
Are there any R-project packages that facilitate asynchronous network IO?
I'm think here along the lines of Ruby's Eventmachine or Python's Twisted.
If there are several such packages/libraries which is the best in terms of:
- performance
- features
...
Consider the following .Net ASMX web service with two web methods.
using System;
using System.Runtime.Remoting.Messaging;
using System.Web.Services;
using System.Xml.Serialization;
namespace DemoWebService
{
public class
ArrayItem
{
public int
Value1;
public int
Value2;
};
[WebService(Namespace = "http://begen.name/xml/n...
We are using a WCF service with a Callback contract. Communication is Asynchronous. The service contract is defined as:
[ServiceContract(Namespace = "Silverlight", CallbackContract = typeof(ISessionClient),SessionMode = SessionMode.Allowed)]
public interface ISessionService
With a method:
[OperationContract(IsOneWay = true)]
vo...
Here are my basic assumptions:
Wcf executes my service operation methods on IOCP threads (UnsafeQueueNativeOverlapped) instead of normal ThreadPool threads (QueueUserWorkItem).
Blocking I/O should not be done inside of one-way service operation methods.
Blocking I/O should not be done inside of a normal ThreadPool thread.
I believe t...
Does anyone know of a good resource for open-source libraries for asynchronous C# (or native stuff to the language). I'm interested in anything on this topic, but I'm specifically looking for stuff pertaining to HTTP and DB calls. Maybe an event-driven framework with plugs for HTTP and DB?
Please do not buzz in with a non-C# solution or...
There is array of objects, which are expanded with parallel ajax requests. When last request is done array should be processed. The only solution i see is:
function expandArray(objects, callback){
number_of_requests=objects.length-1;
for(i in objects){
$.getJSON(request,function(){
//expanding array
...