Gets the underlying batch operation.

import Batch = require("nativescript-batch");

var b = Batch.newBatch(function(ctx) {
    ctx.log("Hello!");
});

b.name = "Operation #1";

b.addLogger(function(ctx) {
    console.log("[" + ctx.operation.name + "] " + ctx.message);
});

b.start();