private void OnComplete(operations.EchoGet operation, HttpResponse response) { this.operation = operation; Action <operations.EchoGet, HttpResponse> LocalCallback = Callback; OnCompletion(operation, response, BenChristensonApiMonitor.Instance); // this will free up the behavior to accept another call count -= 1; LocalCallback(operation, response); // this is the project's custom OnComplete if (DestroyOnComplete) { this.Destroy(); } }
private void OnFail(operations.EchoGet operation, HttpResponse response) { responseData = null; Status = ApiBehaviorStatus.FAILURE; }
public string responseData; // str of "Hello World!" private void OnSuccess(operations.EchoGet operation, HttpResponse response) { responseData = operation.responseData; Status = ApiBehaviorStatus.SUCCESS; }