public CorrespondenceFact CreateFact(FactMemento memento) { MatchmakingService newFact = new MatchmakingService(memento); // Create a memory stream from the memento data. using (MemoryStream data = new MemoryStream(memento.Data)) { using (BinaryReader output = new BinaryReader(data)) { } } return newFact; }
// Business constructor public GameRequest( MatchmakingService matchmakingService ,User user ) { _unique = Guid.NewGuid(); InitializeResults(); _matchmakingService = new PredecessorObj<MatchmakingService>(this, RoleMatchmakingService, matchmakingService); _user = new PredecessorObj<User>(this, RoleUser, user); }