private void MessageProcessCallback(MessageReponse response) { var serializeType = BinarySerialize.From <MessageReponse>(); var bytes = serializeType.Serialize(response); Send(bytes); }
private void FinishExecute() { var response = new MessageReponse { Id = ProcessContext.Request.Id, Results = Results.ToArray(), Error = _error?.Message }; ProcessContext.Callback(response); ExecutorController.Instance.ReleaseExecutor(this); }