Skip to content

Commit 8495201

Browse files
committed
some docs
1 parent cd7a165 commit 8495201

File tree

6 files changed

+46
-33
lines changed

6 files changed

+46
-33
lines changed

src/AET.SteamAbstraction/AET.SteamAbstraction/Games/SteamAppManifest.cs

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,46 +10,46 @@ namespace AET.SteamAbstraction.Games;
1010
/// Manifest representing an installed Steam game.
1111
/// <para>Equality matching is only performed on the <see cref="Id"/> and <see cref="Library"/> properties.</para>
1212
/// </summary>
13-
public class SteamAppManifest : IEquatable<SteamAppManifest>
13+
public sealed class SteamAppManifest : IEquatable<SteamAppManifest>
1414
{
1515
/// <summary>
16-
/// The library where this game is installed.
16+
/// Gets the library where this game is installed.
1717
/// </summary>
1818
public ISteamLibrary Library { get; }
1919

2020
/// <summary>
21-
/// The file of this manifest.
21+
/// Gets the file of this manifest.
2222
/// </summary>
2323
public IFileInfo ManifestFile { get; }
2424

2525
/// <summary>
26-
/// The game's ID.
26+
/// Gets the game's ID.
2727
/// </summary>
2828
public uint Id { get; }
2929

3030
/// <summary>
31-
/// The game's name.
31+
/// Gets the game's name.
3232
/// </summary>
3333
public string Name { get; }
3434

3535
/// <summary>
36-
/// The game's install directory.
36+
/// Gets the game's install directory.
3737
/// </summary>
3838
public IDirectoryInfo InstallDir { get; }
3939

4040
/// <summary>
41-
/// The state of the game when this instance was created.
41+
/// Gets the state of the game when this instance was created.
4242
/// </summary>
4343
public SteamAppState State { get; }
4444

4545
/// <summary>
46-
/// The depots installed with this game.
46+
/// Gets the depots installed with this game.
4747
/// </summary>
4848
/// <remarks>Usually this includes DLCs, language packs and required shared libraries.</remarks>
4949
public ISet<uint> Depots { get; }
5050

5151
/// <summary>
52-
/// Creates a new instance.
52+
/// Initializes a new instance of the <see cref="SteamAppManifest"/> class with the specified game information.
5353
/// </summary>
5454
/// <param name="library">The library where this game is installed.</param>
5555
/// <param name="manifestFile">The file of this manifest.</param>
@@ -58,6 +58,11 @@ public class SteamAppManifest : IEquatable<SteamAppManifest>
5858
/// <param name="installDir">The game's install directory.</param>
5959
/// <param name="state">The state of the game when this instance was created.</param>
6060
/// <param name="depots">The depots installed with this game. </param>
61+
/// <exception cref="ArgumentNullException">
62+
/// <paramref name="library"/> or <paramref name="manifestFile"/> of <paramref name="installDir"/> or
63+
/// <paramref name="depots"/> or <paramref name="name"/> is <see langword="null"/>.
64+
/// </exception>
65+
/// <exception cref="ArgumentException"><paramref name="name"/> is empty.</exception>
6166
public SteamAppManifest(
6267
ISteamLibrary library,
6368
IFileInfo manifestFile,

src/AET.SteamAbstraction/AET.SteamAbstraction/ISteamWrapper.cs

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,31 +21,30 @@ public interface ISteamWrapper : IDisposable
2121
/// </summary>
2222
bool IsRunning { get; }
2323

24-
2524
/// <summary>
26-
/// Gets whether a user is logged in.
25+
/// Gets a value indicating whether a user is logged in.
2726
/// </summary>
2827
bool IsUserLoggedIn { get; }
2928

3029
/// <summary>
31-
/// Gets whether the current logged-in user has activated the offline mode.
30+
/// Gets a value indicating whether the current logged-in user has activated the offline mode.
3231
/// <see langword="null"/> if Steam is not installed or the status could not be retrieved.
3332
/// </summary>
3433
bool? UserWantsOfflineMode { get; }
3534

3635
/// <summary>
37-
/// Checks whether a given game is installed.
36+
/// Checks whether the specified game is installed.
3837
/// </summary>
3938
/// <param name="gameId">The ID of the game.</param>
40-
/// <param name="manifest">The manifest of the installed game or <see langword="null"/>.</param>
41-
/// <returns><see langword="true"/> is the game is installed; <see langword="false"/> otherwise.</returns>
42-
/// <exception cref="SteamException">if Steam is not installed.</exception>
39+
/// <param name="manifest">When this method returns, the manifest of the installed game, if the game is installed or <see langword="null"/>.</param>
40+
/// <returns><see langword="true"/> if the game is installed; otherwise, <see langword="false"/>.</returns>
41+
/// <exception cref="SteamException">Steam is not installed.</exception>
4342
bool IsGameInstalled(uint gameId, [NotNullWhen(true)] out SteamAppManifest? manifest);
4443

4544
/// <summary>
4645
/// Starts the Steam client.
4746
/// </summary>
48-
/// <exception cref="SteamException">if Steam is not installed.</exception>
47+
/// <exception cref="SteamException">Steam is not installed.</exception>
4948
void StartSteam();
5049

5150
/// <summary>
@@ -54,7 +53,7 @@ public interface ISteamWrapper : IDisposable
5453
/// If the user requested Offline mode, the returned task completes when the Steam client is ready to use.
5554
/// </para>
5655
/// </summary>
57-
/// <param name="startIfNotRunning">When set to <see langword="true"/> Steam will be started if not already running.
56+
/// <param name="startIfNotRunning">When set to <see langword="true"/> Steam will be started, if not already running.
5857
/// When set to <see langword="false"/> Steam must be started manually.</param>
5958
/// <param name="cancellation">A token that may be canceled to release the resources from waiting
6059
/// for Steam and complete the returned Task as canceled.</param>

src/AET.SteamAbstraction/AET.SteamAbstraction/Library/ISteamLibrary.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,27 @@ namespace AET.SteamAbstraction.Library;
1111
public interface ISteamLibrary : IEquatable<ISteamLibrary>
1212
{
1313
/// <summary>
14-
/// Physical location of the library.
14+
/// Gets the location of the library.
1515
/// </summary>
1616
IDirectoryInfo LibraryLocation { get; }
1717

1818
/// <summary>
19-
/// The 'steamapps' directory.
19+
/// Gets the 'steamapps' directory.
2020
/// </summary>
2121
IDirectoryInfo SteamAppsLocation { get; }
2222

2323
/// <summary>
24-
/// The 'common' directory of the <see cref="SteamAppsLocation"/>
24+
/// Gets the 'common' directory of the <see cref="SteamAppsLocation"/>
2525
/// </summary>
2626
IDirectoryInfo CommonLocation { get; }
2727

2828
/// <summary>
29-
/// The 'workshop' directory of the <see cref="SteamAppsLocation"/>
29+
/// Gets the 'workshop' directory of the <see cref="SteamAppsLocation"/>
3030
/// </summary>
3131
IDirectoryInfo WorkshopsLocation { get; }
3232

3333
/// <summary>
34-
/// The installed game manifests of this library.
34+
/// Gets the installed game manifests of this library.
3535
/// </summary>
3636
/// <returns>Collection of game manifests.</returns>
3737
IEnumerable<SteamAppManifest> GetApps();

src/AET.SteamAbstraction/AET.SteamAbstraction/Registry/ISteamRegistry.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ namespace AET.SteamAbstraction.Registry;
99
internal interface ISteamRegistry : IDisposable
1010
{
1111
/// <summary>
12-
/// Id of the logged-in user.
12+
/// Gets the ID of the logged-in user.
1313
/// </summary>
1414
int? ActiveUserId { get; set; }
1515

1616
/// <summary>
17-
/// The executable of the Steam client.
17+
/// Gets the executable of the Steam client.
1818
/// </summary>
1919
IFileInfo? ExecutableFile { get; }
2020

2121
/// <summary>
22-
/// The installation directory of the Steam client
22+
/// Gets the installation directory of the Steam client
2323
/// </summary>
2424
IDirectoryInfo? InstallationDirectory { get; }
2525
}

src/AET.SteamAbstraction/AET.SteamAbstraction/SteamException.cs

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,31 @@
33
namespace AET.SteamAbstraction;
44

55
/// <summary>
6-
/// Exception which gets thrown if anything Steam related failed.
6+
/// The exception that is thrown if anything Steam related fails.
77
/// </summary>
88
public class SteamException : Exception
99
{
10-
/// <inheritdoc/>
10+
/// <summary>
11+
/// Initializes a new instance of the <see cref="SteamException"/> class.
12+
/// </summary>
1113
public SteamException()
1214
{
1315
}
1416

15-
/// <inheritdoc/>
16-
public SteamException(string message) : base(message)
17+
/// <summary>
18+
/// Initializes a new instance of the <see cref="SteamException"/> class with a specified error message.
19+
/// </summary>
20+
/// <param name="message">The message that describes the error.</param>
21+
public SteamException(string? message) : base(message)
1722
{
1823
}
1924

20-
/// <inheritdoc/>
21-
public SteamException(string message, Exception exception) : base(message, exception)
25+
/// <summary>
26+
/// Initializes a new instance of the <see cref="SteamException"/> class with a specified error message and a reference to the inner exception that is the cause of this exception.
27+
/// </summary>
28+
/// <param name="message">The error message that explains the reason for the exception.</param>
29+
/// <param name="exception">The exception that is the cause of the current exception, or a null reference if no inner exception is specified.</param>
30+
public SteamException(string? message, Exception? exception) : base(message, exception)
2231
{
2332
}
2433
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace AET.SteamAbstraction;
22

33
/// <summary>
4-
/// Exception which gets thrown if an installation of Steam was not found.
4+
/// The exception that is thrown if an installation of Steam is not found.
55
/// </summary>
66
public sealed class SteamNotFoundException : SteamException;

0 commit comments

Comments
 (0)