DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
| Code Block | ||
|---|---|---|
| ||
public interface IComputeJob<TArg, TResult>
{
IMarshaller<TArg>? InputMarshaller => null;
IMarshaller<TResult>? ResultMarshaller => null;
ValueTask<TResult> ExecuteAsync(IJobExecutionContext context, TArg arg, CancellationToken cancellationToken);
}
public interface IJobExecutionContext
{
IIgnite Ignite { get; }
bool Cancelled { get; }
} |
Example job implementation:
| Code Block | ||
|---|---|---|
| ||
public class ToStringJob : IComputeJob<object?, string?>
{
public async ValueTask<string?> ExecuteAsync(IJobExecutionContext context, object? arg, CancellationToken cancellationToken)
{
await context.Ignite.Tables.GetTablesAsync();
return arg?.ToString();
}
} |
...