Skip to content

Commit

Permalink
Build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kerams committed Dec 19, 2023
1 parent 631f5cb commit e8cc535
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Fable.Remoting.Giraffe.Tests/MiddlewareTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ open Microsoft.AspNetCore.Http
open Expecto
open Types
open System.Net
open Microsoft.IO

let readerTest = reader {
let! context = resolve<HttpContext>()
Expand All @@ -35,7 +36,7 @@ module ServerParts =
|> Remoting.withRouteBuilder builder
|> Remoting.withErrorHandler (fun ex routeInfo -> Propagate (sprintf "Message: %s, request body: %A" ex.Message routeInfo.requestBodyText))
|> Remoting.withBinarySerialization
|> Remoting.withRecyclableMemoryStreamManager (Microsoft.IO.RecyclableMemoryStreamManager (ThrowExceptionOnToArray = true))
|> Remoting.withRecyclableMemoryStreamManager (RecyclableMemoryStreamManager (RecyclableMemoryStreamManager.Options (ThrowExceptionOnToArray = true)))
|> Remoting.fromValue binaryServer

let otherWebApp =
Expand Down
3 changes: 2 additions & 1 deletion Fable.Remoting.IntegrationTests/DotnetClient/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ open Suave.Operators
open Suave.Filters
open ServerImpl
open System.Threading
open Microsoft.IO

module ServerParts =

Expand All @@ -22,7 +23,7 @@ module ServerParts =
|> Remoting.fromValue server
|> Remoting.withRouteBuilder routeBuilder
|> Remoting.withErrorHandler (fun ex routeInfo -> Propagate (sprintf "Message: %s, request body: %A" ex.Message routeInfo.requestBodyText))
|> Remoting.withRecyclableMemoryStreamManager (Microsoft.IO.RecyclableMemoryStreamManager (ThrowExceptionOnToArray = true))
|> Remoting.withRecyclableMemoryStreamManager (RecyclableMemoryStreamManager (RecyclableMemoryStreamManager.Options (ThrowExceptionOnToArray = true)))
|> Remoting.buildWebPart

let webApp =
Expand Down
3 changes: 2 additions & 1 deletion Fable.Remoting.Suave.Tests/FableSuaveAdapterTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ open Suave.Http
open System
open Expecto
open Types
open Microsoft.IO

// Test helpers

Expand All @@ -28,7 +29,7 @@ let app =
|> Remoting.fromValue implementation
|> Remoting.withDiagnosticsLogger (printfn "%s")
|> Remoting.withErrorHandler errorHandler
|> Remoting.withRecyclableMemoryStreamManager (Microsoft.IO.RecyclableMemoryStreamManager (ThrowExceptionOnToArray = true))
|> Remoting.withRecyclableMemoryStreamManager (RecyclableMemoryStreamManager (RecyclableMemoryStreamManager.Options (ThrowExceptionOnToArray = true)))
|> Remoting.buildWebPart

let postContent (input: string) = new StringContent(sprintf "[%s]" input, System.Text.Encoding.UTF8)
Expand Down

0 comments on commit e8cc535

Please sign in to comment.