FsUno.Prod icon indicating copy to clipboard operation
FsUno.Prod copied to clipboard

Game cannot be played with different Game Ids because it always loads the first played game

Open toburger opened this issue 11 years ago • 2 comments

You have to provide an override for ToString on the GameId single case discriminated union, because otherwise the streamId is always formatted like Game-FsUno.Domain.Game+GameId.

type GameId = GameId of int with
    override self.ToString() =
        let (GameId id) = self in id.ToString()

toburger avatar Aug 13 '14 08:08 toburger

Right ! I change this soon, thx. Didn't notice this one :grin:

thinkbeforecoding avatar Aug 13 '14 12:08 thinkbeforecoding

Mangled in #8 (Yes, shoulda branched but git book isnt top of stack right now :( ) is a fix for this addressing it instead by destructuring at the point of use as we don't want to encourage usage of ToString (See also my related concerns in #9)

bartelink avatar Aug 21 '14 22:08 bartelink