You are on page 1of 1

W:\jsc.svn\compiler\jsc.meta\jsc.meta\Library\Mashups\UltraWebServiceWithInternalService.

cs 1
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ScriptCoreLib.Delegates;

namespace jsc.meta.Library.Mashups
{
internal sealed class UltraWebServiceWithInternalServiceApplication
{
public UltraWebServiceWithInternalServiceApplication(object p)
{
var service = new UltraWebServiceWithInternalService();

service.Method1Complete +=
y =>
{
// yay!
};

service.Method1("client data",
y =>
{
// yay!
}
);
}
}

public class UltraWebServiceWithInternalService


{
public event StringAction Method1Complete;

public void Method1(string input, StringAction yield)


{
var secure = new UltraWebServiceWithInternalServiceInternal();

yield("working on it!");

secure.SecureNonPublicMethod(input,

// we better have the Session on the server set up to store this call
// and the client polling or on wait for events

c =>
{

// notify via event


Method1Complete(c);
// notify via closure
yield(c);
}
);
}
}

public class UltraWebServiceWithInternalServiceInternal


{
public void SecureNonPublicMethod(string input, StringAction yield)
{

}
}
}

You might also like