Commit ad184569 authored by Hirsch Singhal's avatar Hirsch Singhal Committed by GitHub
Browse files

Make generic Stream REST APIs public as well. (#258)

parent 7341d2cd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ namespace Microsoft.Tools.WindowsDevicePortal
        /// <param name="uri">The uri to which the delete request will be issued.</param>
        /// <returns>Task tracking HTTP completion</returns>
#pragma warning disable 1998
        private async Task<Stream> DeleteAsync(Uri uri)
        public async Task<Stream> DeleteAsync(Uri uri)
        {
            IBuffer dataBuffer = null;

+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ namespace Microsoft.Tools.WindowsDevicePortal
        /// <param name="uri">The uri to which the get request will be issued.</param>
        /// <returns>Response data as a stream.</returns>
#pragma warning disable 1998
        private async Task<Stream> GetAsync(Uri uri)
        public async Task<Stream> GetAsync(Uri uri)
        {
            IBuffer dataBuffer = null;

+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ namespace Microsoft.Tools.WindowsDevicePortal
        /// <param name="requestStreamContentType">The type of that request body data.</param>
        /// <returns>Task tracking the completion of the POST request</returns>
#pragma warning disable 1998
        private async Task<Stream> PostAsync(
        public async Task<Stream> PostAsync(
            Uri uri,
            Stream requestStream = null,
            string requestStreamContentType = null)
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ namespace Microsoft.Tools.WindowsDevicePortal
        /// <param name="body">The HTTP content comprising the body of the request.</param>
        /// <returns>Task tracking the PUT completion.</returns>
#pragma warning disable 1998
        private async Task<Stream> PutAsync(
        public async Task<Stream> PutAsync(
            Uri uri,
            IHttpContent body = null)
        {
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ namespace Microsoft.Tools.WindowsDevicePortal
        /// </summary>
        /// <param name="uri">The uri to which the delete request will be issued.</param>
        /// <returns>Task tracking HTTP completion</returns>
        private async Task<Stream> DeleteAsync(Uri uri)
        public async Task<Stream> DeleteAsync(Uri uri)
        {
            MemoryStream dataStream = null;

Loading