Beispiel #1
0
        /// <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);
        }
Beispiel #2
0
 /// <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;
 }