コード例 #1
0
 private static ResultsetFormatter ReadDiscoverResponsePrivate(XmlReader reader, InlineErrorHandlingType inlineErrorHandling, DataTable inTable, bool schemaOnly, Dictionary <string, bool> columnsToConvertTimeFor)
 {
     XmlaClient.StartDiscoverResponseS(reader);
     if (XmlaClient.IsRowsetResponseS(reader))
     {
         return(SoapFormatter.ReadRowsetResponsePrivate(reader, inlineErrorHandling, inTable, schemaOnly, columnsToConvertTimeFor));
     }
     if (!XmlaClient.IsEmptyResultS(reader))
     {
         throw new AdomdUnknownResponseException(XmlaSR.UnknownServerResponseFormat, string.Format("Expected rowset or empty result, got {0}", reader.Name));
     }
     XmlaClient.ReadEmptyRootS(reader);
     XmlaClient.EndDiscoverResponseS(reader);
     return(null);
 }
コード例 #2
0
 private static ResultsetFormatter ReadExecuteResponsePrivate(XmlReader reader, InlineErrorHandlingType inlineErrorHandling)
 {
     XmlaClient.StartExecuteResponseS(reader);
     if (XmlaClient.IsDatasetResponseS(reader))
     {
         return(SoapFormatter.ReadDataSetResponsePrivate(reader));
     }
     if (XmlaClient.IsRowsetResponseS(reader))
     {
         return(SoapFormatter.ReadRowsetResponsePrivate(reader, inlineErrorHandling, null, false, null));
     }
     if (!XmlaClient.IsEmptyResultS(reader))
     {
         throw new AdomdUnknownResponseException(XmlaSR.UnknownServerResponseFormat, string.Format("Expected dataset, rowset, or empty result, got {0}", reader.Name));
     }
     XmlaClient.ReadEmptyRootS(reader);
     XmlaClient.EndExecuteResponseS(reader);
     return(null);
 }