Otter SDK Reference
Version:

RemoteJob Class

Represents a long-running remote job.

Inheritance Hierarchy

  • object
    • Inedo.Agents.RemoteJob

Syntax

public class RemoteJob : System.IDisposable, Inedo.Diagnostics.ILogger

Constructors

Name Description
RemoteJob

Initializes a new instance of the RemoteJob class.

Events

Name Description
MessageLogged

Occurs when a log message has been received.

Methods

Name Description
Cancel

Requests that the job be immediately canceled on the remote agent.

DataReceived(byte[] data)

Processes data received from the server from a call to the Post(byte[] data) method.

Deserialize(System.IO.Stream stream)

Deserializes this instance from the specified stream.

DeserializeResponse(System.IO.Stream stream)

Deserializes the return value of the ExecuteAsync(System.Threading.CancellationToken cancellationToken) method from the specified stream.

Dispose

Releases resources used by the job.

ExecuteAsync(System.Threading.CancellationToken cancellationToken)

Invoked on the remote agent to perform the job.

Log(Inedo.Diagnostics.MessageLevel logLevel, string message)

Sends a long message back to the client.

Post(byte[] data)

Posts arbitrary data back to the client.

Serialize(System.IO.Stream stream)

Serializes this instance into the specified stream.

SerializeResponse(System.IO.Stream stream, object result)

Serializes the return value of the ExecuteAsync(System.Threading.CancellationToken cancellationToken) method into the specified stream.