Initializes a new instance of the
ContextEventArgs class.
function initializeClientContextTest(clientService, appName) {
// Create a client context, and register context events
var ccowClientContext = new lt.Ccow.ClientContext(clientService, appName);
ccowClientContext.contextChangesPending.add(function (sender, e) {
console.log("contextChangesPending");
});
ccowClientContext.contextChangesCanceled.add(function (sender, e) {
console.log("contextChangesCanceled");
});
ccowClientContext.contextChangesAccepted.add(function (sender, e) {
console.log("contextChangesAccepted");
console.log("contextCoupon:" + e.contextCoupon);
});
ccowClientContext.commonContextTerminated.add(function (sender, e) {
console.log("commonContextTerminated");
});
ccowClientContext.error.add(function (sender, e) {
console.log(e.error);
});
return ccowClientContext;
}