Skip to content
This repository was archived by the owner on Apr 5, 2025. It is now read-only.

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

Open
toburger opened this issue Aug 13, 2014 · 2 comments

Comments

@toburger
Copy link

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()
@thinkbeforecoding
Copy link
Owner

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

bartelink added a commit to bartelink/FsUno.Prod that referenced this issue Aug 21, 2014
@bartelink
Copy link
Contributor

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)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants