@@ -1197,9 +1197,9 @@ public Query Only(String[] fieldUid)
11971197 UrlQueries . Add ( "only[BASE][]" , fieldUid ) ;
11981198 }
11991199 }
1200- catch
1201- {
1202- //CSAppUtils.showLog(TAG, "--include Reference-catch|" + e );
1200+ catch ( Exception e )
1201+ {
1202+ Console . WriteLine ( "IOException source: {0}" , e . Source ) ;
12031203 }
12041204
12051205 return this ;
@@ -1234,9 +1234,9 @@ public Query Except(String[] fieldUids)
12341234 UrlQueries . Add ( "except[BASE][]" , fieldUids ) ;
12351235 }
12361236 }
1237- catch
1237+ catch ( Exception e )
12381238 {
1239- //CSAppUtils.showLog(TAG, "--include Reference-catch|" + e );
1239+ Console . WriteLine ( "IOException source: {0}" , e . Source ) ;
12401240 }
12411241 return this ;
12421242 }
@@ -1269,52 +1269,6 @@ public Query IncludeSchema()
12691269 throw new Exception ( StackConstants . ErrorMessage_QueryFilterException , e ) ;
12701270 }
12711271 return this ;
1272- }
1273-
1274-
1275- /// <summary>
1276- /// Include object owner's profile in the objects data.
1277- /// </summary>
1278- /// <returns>Current instance of Query, this will be useful for a chaining calls.</returns>
1279- /// <example>
1280- /// <code>
1281- /// //"blt5d4sample2633b" is a dummy Stack API key
1282- /// //"blt6d0240b5sample254090d" is dummy access token.
1283- /// ContentstackClient stack = new ContentstackClinet("blt5d4sample2633b", "blt6d0240b5sample254090d", "stag");
1284- /// Query csQuery = stack.ContentType("contentType_id").Query();
1285- ///
1286- /// csQuery.IncludeOwner();
1287- /// csQuery.Find<Product>().ContinueWith((queryResult) => {
1288- /// //Your callback code.
1289- /// });
1290- /// </code>
1291- /// </example>
1292- private Query IncludeOwner ( )
1293- {
1294- try
1295- {
1296- UrlQueries . Add ( "include_owner" , true ) ;
1297- }
1298- catch ( Exception e )
1299- {
1300- throw new Exception ( StackConstants . ErrorMessage_QueryFilterException , e ) ;
1301- }
1302- return this ;
1303- }
1304-
1305-
1306-
1307- private Query IncludeDraft ( )
1308- {
1309- try
1310- {
1311- UrlQueries . Add ( "include_draft" , true ) ;
1312- }
1313- catch ( Exception e )
1314- {
1315- throw new Exception ( StackConstants . ErrorMessage_QueryFilterException , e ) ;
1316- }
1317- return this ;
13181272 }
13191273
13201274 /// <summary>
@@ -1582,16 +1536,16 @@ public async Task<ContentstackCollection<T>> FindOne<T>()
15821536 #endregion
15831537 private async Task < ContentstackCollection < T > > Exec < T > ( )
15841538 {
1585- Dictionary < String , Object > headers = GetHeader ( _Headers ) ;
1586- Dictionary < String , object > headerAll = new Dictionary < string , object > ( ) ;
1539+ Dictionary < string , Object > headers = GetHeader ( _Headers ) ;
1540+ Dictionary < string , object > headerAll = new Dictionary < string , object > ( ) ;
15871541 Dictionary < string , object > mainJson = new Dictionary < string , object > ( ) ;
15881542
15891543 //Dictionary<string, object> urlQueries = new Dictionary<string, object>();
15901544 if ( headers != null && headers . Count ( ) > 0 )
15911545 {
15921546 foreach ( var header in headers )
15931547 {
1594- headerAll . Add ( header . Key , ( String ) header . Value ) ;
1548+ headerAll . Add ( header . Key , ( string ) header . Value ) ;
15951549 }
15961550
15971551 if ( headers . ContainsKey ( "environment" ) )
0 commit comments