|
using System;
using System.Collections.Generic;
using System.Text;
using AsyncGen;
namespace TestAssembly
{
[GenerateAsyncClientClass("Client")]
public interface IServer
{
[GenerateAsyncOperation(
GenerateCancelMethod = true,
CompletedEventName = "CalculationComplete",
CallbackInterface = typeof(IServerCallbacks))]
double Calculate(double argument, [TaskID] object userState, IServerCallbacks callbacks);
}
public interface IServerCallbacks
{
[GenerateProgressEvent("CalculationProgressChanged")]
[return:CancelFlag] bool ReportCalculationProgress(double approximateResult, [ProgressPercentage] int percentage, [TaskID] object userState);
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I got my B.Sc. in Mathematics and Computer Science from Tel Aviv University in 1997. Since then I have developed software in UNIX, Win32 and .NET. I currently live in Haifa.