/// <summary> /// /// </summary> internal override ReturnResultBase Execute() { ReturnResult result = (ReturnResult)PrepareColumnsList(); if (result.Success) { OnRecordFetchDelegate onRecordFetch = Serialize; Init(); IClientCommand dataViewCommand = CommandFactory.CreateFetchAllDataViewCommand(Task.getTaskTag(), onRecordFetch); result = Task.DataviewManager.Execute(dataViewCommand); Terminate(); } return(result); }
/// <summary> /// /// </summary> /// <param name="taskId"></param> /// <param name="onRecordFetchDelegate"></param> /// <returns></returns> internal static FetchAllDataViewCommand CreateFetchAllDataViewCommand(String taskId, OnRecordFetchDelegate onRecordFetchDelegate) { return(new FetchAllDataViewCommand { TaskTag = taskId, onRecordFetch = onRecordFetchDelegate }); }
internal LocalDataViewFetcherCommand(IClientCommand command) : base(command) { this.onRecordFetch = ((FetchAllDataViewCommand)command).onRecordFetch; }