コード例 #1
0
		public RepositoryResponse<string> ProcessSelectedExportDataAsync()
		{
			UnitOfWorkHelper<MixCmsContext>.InitTransaction(null, null, ref V_0, ref V_1, ref V_2);
			stackVariable5 = new RepositoryResponse<string>();
			stackVariable5.set_IsSucceed(true);
			V_3 = stackVariable5;
			try
			{
				try
				{
					this.ProcessPages(V_0, V_1);
					this.ProcessModules(V_0, V_1);
					this.ProcessAttributeSetsAsync(V_0, V_1);
					this.ProcessAttributeSetData(V_0, V_1);
					this.ProcessDatas(V_0, V_1);
					V_4 = V_3;
				}
				catch (Exception exception_0)
				{
					V_5 = exception_0;
					V_6 = UnitOfWorkHelper<MixCmsContext>.HandleException<Mix.Cms.Lib.ViewModels.MixPages.ImportViewModel>(V_5, V_2, V_1);
					V_3.set_IsSucceed(false);
					V_3.set_Errors(V_6.get_Errors());
					V_3.set_Exception(V_5);
					V_4 = V_3;
				}
			}
			finally
			{
				if (V_2)
				{
					RelationalDatabaseFacadeExtensions.CloseConnection(V_0.get_Database());
					V_1.Dispose();
					V_0.Dispose();
				}
			}
			return V_4;
		}