Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serialise Delegates (or closures) instead of Job classes #1

Open
DiogoNeves opened this issue Jan 23, 2012 · 1 comment
Open

Serialise Delegates (or closures) instead of Job classes #1

DiogoNeves opened this issue Jan 23, 2012 · 1 comment
Assignees

Comments

@DiogoNeves
Copy link
Owner

Confirm this is required first but would be cool to do something like:

SomeState state = new SomeState();

RemoteConsumer consumer = new RemoteConsumer();
consumer.JobFinished += (c, j) => {
  Console.WriteLine("Job executed remotely returned {0}", state.ReturnVal);
}

consumer.Consume(() => {
  Console.WriteLine("This is a serialised closure");
  state.ReturnVal = 123;
});

That's just an example, might need better code ;)

@ghost ghost assigned DiogoNeves Jan 23, 2012
@DiogoNeves
Copy link
Owner Author

Maybe that's actually not the best solution...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant