コード例 #1
0
        // Clear the batch staging data for the specified batch id.
        private static void ClearStagingData(string modelName, int batchId)
        {
            try
            {
                // Set model and batch objects.
                MDSTestService.Identifier modelId = new MDSTestService.Identifier { Name = modelName };

                // Create the request object.
                MDSTestService.EntityStagingClearRequest clearRequest = new EntityStagingClearRequest();
                clearRequest.ModelId = modelId;
                clearRequest.BatchId = batchId;

                // Clear the batch staging data.
                MDSTestService.EntityStagingClearResponse processResponse = clientProxy.EntityStagingClear(clearRequest);

                HandleOperationErrors(processResponse.OperationResult);
            }
            catch (Exception ex)
            {
                Console.WriteLine("Error: {0}", ex);
            }
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: NadirTP/tpGit
        // Clear the batch staging data for the specified batch id.
        private static void ClearStagingData(string modelName, int batchId)
        {
            try
            {
                // Set model and batch objects.
                MDSTestService.Identifier modelId = new MDSTestService.Identifier {
                    Name = modelName
                };

                // Create the request object.
                MDSTestService.EntityStagingClearRequest clearRequest = new EntityStagingClearRequest();
                clearRequest.ModelId = modelId;
                clearRequest.BatchId = batchId;

                // Clear the batch staging data.
                MDSTestService.EntityStagingClearResponse processResponse = clientProxy.EntityStagingClear(clearRequest);

                HandleOperationErrors(processResponse.OperationResult);
            }
            catch (Exception ex)
            {
                Console.WriteLine("Error: {0}", ex);
            }
        }