public GameProfile( AggregateId id, AggregateId gameId, string name, string proxyDirectoryPath, string logsDirectoryPath, PluginType pluginType, Direct3D11Settings direct3D11Settings) : base(id) { GameId = gameId; Name = name; ProxyDirectoryPath = proxyDirectoryPath; LogsDirectoryPath = logsDirectoryPath; PluginType = pluginType; Direct3D11Settings = direct3D11Settings; }
public GameProfile AddGameProfile( AggregateId gameProfileId, string name, string proxyDirectoryPath, string logsDirectoryPath, PluginType pluginType, Direct3D11Settings direct3D11Settings) { var profile = new GameProfile( gameProfileId, Id, name, proxyDirectoryPath, logsDirectoryPath, pluginType, direct3D11Settings); _profiles.Remove(entity => entity.Id == gameProfileId); _profiles.Add(profile); ProfileId = profile.Id; return(profile.Clone()); }