Skip to content

Commit

Permalink
remove !PORTABLE statements
Browse files Browse the repository at this point in the history
  • Loading branch information
ElizabethOkerio committed Jun 12, 2020
1 parent cb06e5a commit d4fc201
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 15 deletions.
4 changes: 0 additions & 4 deletions src/Microsoft.OData.Client/DataServiceContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,11 @@ public class DataServiceContext
/// <summary>resolve typename from a type</summary>
private Func<string, Type> resolveType;

#if !PORTABLELIB // Timeout not available
/// <summary>time-out value in seconds, 0 for default</summary>
private int timeout;

/// <summary>read or write time-out value in seconds, 0 for default</summary>
private int readWriteTimeout;
#endif
/// <summary>whether to use post-tunneling for PUT/DELETE</summary>
private bool postTunneling;

Expand Down Expand Up @@ -483,7 +481,6 @@ public virtual Func<string, Type> ResolveType
set { this.resolveType = value; }
}

#if !PORTABLELIB // Timeout not available
/// <summary>Gets or sets the time-out option (in seconds) that is used for the underlying HTTP request to the data service.</summary>
/// <returns>An integer that indicates the time interval (in seconds) before time-out of a service request.</returns>
/// <remarks>
Expand Down Expand Up @@ -537,7 +534,6 @@ public virtual int ReadWriteTimeout
this.readWriteTimeout = value;
}
}
#endif

/// <summary>Gets or sets a Boolean value that indicates whether to use post tunneling.</summary>
/// <returns>A Boolean value that indicates whether to use post tunneling.</returns>
Expand Down
2 changes: 0 additions & 2 deletions src/Microsoft.OData.Client/InternalODataRequestMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ public override ICredentials Credentials
set { throw new NotSupportedException(); }
}

#if !PORTABLELIB
/// <summary>
/// Gets or sets the timeout (in seconds) for this request.
/// </summary>
Expand Down Expand Up @@ -140,7 +139,6 @@ public override bool SendChunked
throw new NotImplementedException();
}
}
#endif

/// <summary>
/// internal headers dictionary
Expand Down
2 changes: 0 additions & 2 deletions src/Microsoft.OData.Client/ODataRequestMessageWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ internal static ODataRequestMessageWrapper CreateRequestMessageWrapper(BuildingR
requestMessage.Credentials = requestInfo.Credentials;
}

#if !PORTABLELIB // Timeout not available
if (requestInfo.Timeout != 0)
{
requestMessage.Timeout = requestInfo.Timeout;
Expand All @@ -168,7 +167,6 @@ internal static ODataRequestMessageWrapper CreateRequestMessageWrapper(BuildingR
{
requestMessage.ReadWriteTimeout = requestInfo.ReadWriteTimeout;
}
#endif

return new TopLevelRequestMessageWrapper(requestMessage, requestInfo, requestMessageArgs.Descriptor);
}
Expand Down
3 changes: 0 additions & 3 deletions src/Microsoft.OData.Client/RequestInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ internal System.Net.ICredentials Credentials
get { return this.Context.Credentials; }
}

#if !PORTABLELIB
/// <summary>
/// Get the timeout span in seconds to use for the underlying HTTP request to the data service.
/// </summary>
Expand All @@ -165,8 +164,6 @@ internal int ReadWriteTimeout
get { return this.Context.ReadWriteTimeout; }
}

#endif

/// <summary>
/// Whether to use post-tunneling for PUT/DELETE.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ public abstract string Method
/// </summary>
public abstract ICredentials Credentials { get; set; }

#if !PORTABLELIB
/// <summary>
/// Gets or sets the timeout (in seconds) for this request.
/// </summary>
Expand All @@ -71,7 +70,6 @@ public abstract string Method
/// Gets or sets the read and write timeout (in seconds) for this request.
/// </summary>
public abstract int ReadWriteTimeout { get; set; }
#endif

/// <summary>
/// Gets or sets a value that indicates whether to send data in segments to the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ public override System.Net.ICredentials Credentials
set { this.httpRequest.Credentials = value; }
}

#if !PORTABLELIB
/// <summary>
/// Gets or sets the timeout (in seconds) for this request.
/// </summary>
Expand Down Expand Up @@ -205,7 +204,7 @@ public override bool SendChunked
get { return this.httpRequest.SendChunked; }
set { this.httpRequest.SendChunked = value; }
}
#endif

#endregion

/// <summary>
Expand Down

0 comments on commit d4fc201

Please sign in to comment.