Skip to content

Commit

Permalink
Merge pull request #35 from Zastai/issue-34
Browse files Browse the repository at this point in the history
Fix call forwarding from non-async to async
  • Loading branch information
Zastai authored Dec 16, 2021
2 parents e625a85 + 7d87134 commit fb47b37
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions MetaBrainz.MusicBrainz/Query.Browse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1454,7 +1454,7 @@ public Task<IBrowseResults<IRecording>> BrowseReleaseRecordingsAsync(Guid mbid,
/// <exception cref="WebException">When something goes wrong with the web request.</exception>
public IBrowseResults<IRelease> BrowseAreaReleases(Guid mbid, int? limit = null, int? offset = null, Include inc = Include.None,
ReleaseType? type = null, ReleaseStatus? status = null)
=> Utils.ResultOf(this.BrowseAreaReleasesAsync(mbid, limit, offset, inc));
=> Utils.ResultOf(this.BrowseAreaReleasesAsync(mbid, limit, offset, inc, type, status));

/// <summary>Returns (the specified subset of) the releases associated with the given area.</summary>
/// <param name="mbid">The MBID for the area whose releases should be retrieved.</param>
Expand Down Expand Up @@ -1483,7 +1483,7 @@ public Task<IBrowseResults<IRelease>> BrowseAreaReleasesAsync(Guid mbid, int? li
/// <exception cref="WebException">When something goes wrong with the web request.</exception>
public IBrowseResults<IRelease> BrowseArtistReleases(Guid mbid, int? limit = null, int? offset = null, Include inc = Include.None,
ReleaseType? type = null, ReleaseStatus? status = null)
=> Utils.ResultOf(this.BrowseArtistReleasesAsync(mbid, limit, offset, inc));
=> Utils.ResultOf(this.BrowseArtistReleasesAsync(mbid, limit, offset, inc, type, status));

/// <summary>Returns (the specified subset of) the releases associated with the given artist.</summary>
/// <param name="mbid">The MBID for the artist whose releases should be retrieved.</param>
Expand Down Expand Up @@ -1513,7 +1513,7 @@ public Task<IBrowseResults<IRelease>> BrowseArtistReleasesAsync(Guid mbid, int?
public IBrowseResults<IRelease> BrowseCollectionReleases(Guid mbid, int? limit = null, int? offset = null,
Include inc = Include.None, ReleaseType? type = null,
ReleaseStatus? status = null)
=> Utils.ResultOf(this.BrowseCollectionReleasesAsync(mbid, limit, offset, inc));
=> Utils.ResultOf(this.BrowseCollectionReleasesAsync(mbid, limit, offset, inc, type, status));

/// <summary>Returns (the specified subset of) the releases in the given collection.</summary>
/// <param name="mbid">The MBID for the collection whose contained releases should be retrieved.</param>
Expand Down Expand Up @@ -1542,7 +1542,7 @@ public Task<IBrowseResults<IRelease>> BrowseCollectionReleasesAsync(Guid mbid, i
/// <exception cref="WebException">When something goes wrong with the web request.</exception>
public IBrowseResults<IRelease> BrowseLabelReleases(Guid mbid, int? limit = null, int? offset = null, Include inc = Include.None,
ReleaseType? type = null, ReleaseStatus? status = null)
=> Utils.ResultOf(this.BrowseLabelReleasesAsync(mbid, limit, offset, inc));
=> Utils.ResultOf(this.BrowseLabelReleasesAsync(mbid, limit, offset, inc, type, status));

/// <summary>Returns (the specified subset of) the releases associated with the given label.</summary>
/// <param name="mbid">The MBID for the label whose releases should be retrieved.</param>
Expand Down Expand Up @@ -1572,7 +1572,7 @@ public Task<IBrowseResults<IRelease>> BrowseLabelReleasesAsync(Guid mbid, int? l
public IBrowseResults<IRelease> BrowseRecordingReleases(Guid mbid, int? limit = null, int? offset = null,
Include inc = Include.None, ReleaseType? type = null,
ReleaseStatus? status = null)
=> Utils.ResultOf(this.BrowseRecordingReleasesAsync(mbid, limit, offset, inc));
=> Utils.ResultOf(this.BrowseRecordingReleasesAsync(mbid, limit, offset, inc, type, status));

/// <summary>Returns (the specified subset of) the releases associated with the given recording.</summary>
/// <param name="mbid">The MBID for the recording whose releases should be retrieved.</param>
Expand Down Expand Up @@ -1602,7 +1602,7 @@ public Task<IBrowseResults<IRelease>> BrowseRecordingReleasesAsync(Guid mbid, in
public IBrowseResults<IRelease> BrowseReleaseGroupReleases(Guid mbid, int? limit = null, int? offset = null,
Include inc = Include.None, ReleaseType? type = null,
ReleaseStatus? status = null)
=> Utils.ResultOf(this.BrowseReleaseGroupReleasesAsync(mbid, limit, offset, inc));
=> Utils.ResultOf(this.BrowseReleaseGroupReleasesAsync(mbid, limit, offset, inc, type, status));

/// <summary>Returns (the specified subset of) the releases associated with the given release group.</summary>
/// <param name="mbid">The MBID for the release group whose releases should be retrieved.</param>
Expand Down Expand Up @@ -1631,7 +1631,7 @@ public Task<IBrowseResults<IRelease>> BrowseReleaseGroupReleasesAsync(Guid mbid,
/// <exception cref="WebException">When something goes wrong with the web request.</exception>
public IBrowseResults<IRelease> BrowseReleases(IArea area, int? limit = null, int? offset = null, Include inc = Include.None,
ReleaseType? type = null, ReleaseStatus? status = null)
=> Utils.ResultOf(this.BrowseReleasesAsync(area, limit, offset, inc));
=> Utils.ResultOf(this.BrowseReleasesAsync(area, limit, offset, inc, type, status));

/// <summary>Returns (the specified subset of) the releases associated with the given artist.</summary>
/// <param name="artist">The artist whose releases should be retrieved.</param>
Expand All @@ -1645,7 +1645,7 @@ public IBrowseResults<IRelease> BrowseReleases(IArea area, int? limit = null, in
/// <exception cref="WebException">When something goes wrong with the web request.</exception>
public IBrowseResults<IRelease> BrowseReleases(IArtist artist, int? limit = null, int? offset = null, Include inc = Include.None,
ReleaseType? type = null, ReleaseStatus? status = null)
=> Utils.ResultOf(this.BrowseReleasesAsync(artist, limit, offset, inc));
=> Utils.ResultOf(this.BrowseReleasesAsync(artist, limit, offset, inc, type, status));

/// <summary>Returns (the specified subset of) the releases in the given collection.</summary>
/// <param name="collection">The collection whose contained releases should be retrieved.</param>
Expand All @@ -1659,7 +1659,7 @@ public IBrowseResults<IRelease> BrowseReleases(IArtist artist, int? limit = null
/// <exception cref="WebException">When something goes wrong with the web request.</exception>
public IBrowseResults<IRelease> BrowseReleases(ICollection collection, int? limit = null, int? offset = null,
Include inc = Include.None, ReleaseType? type = null, ReleaseStatus? status = null)
=> Utils.ResultOf(this.BrowseReleasesAsync(collection, limit, offset, inc));
=> Utils.ResultOf(this.BrowseReleasesAsync(collection, limit, offset, inc, type, status));

/// <summary>Returns (the specified subset of) the releases associated with the given label.</summary>
/// <param name="label">The label whose releases should be retrieved.</param>
Expand All @@ -1673,7 +1673,7 @@ public IBrowseResults<IRelease> BrowseReleases(ICollection collection, int? limi
/// <exception cref="WebException">When something goes wrong with the web request.</exception>
public IBrowseResults<IRelease> BrowseReleases(ILabel label, int? limit = null, int? offset = null, Include inc = Include.None,
ReleaseType? type = null, ReleaseStatus? status = null)
=> Utils.ResultOf(this.BrowseReleasesAsync(label, limit, offset, inc));
=> Utils.ResultOf(this.BrowseReleasesAsync(label, limit, offset, inc, type, status));

/// <summary>Returns (the specified subset of) the releases associated with the given recording.</summary>
/// <param name="recording">The recording whose releases should be retrieved.</param>
Expand All @@ -1687,7 +1687,7 @@ public IBrowseResults<IRelease> BrowseReleases(ILabel label, int? limit = null,
/// <exception cref="WebException">When something goes wrong with the web request.</exception>
public IBrowseResults<IRelease> BrowseReleases(IRecording recording, int? limit = null, int? offset = null,
Include inc = Include.None, ReleaseType? type = null, ReleaseStatus? status = null)
=> Utils.ResultOf(this.BrowseReleasesAsync(recording, limit, offset, inc));
=> Utils.ResultOf(this.BrowseReleasesAsync(recording, limit, offset, inc, type, status));

/// <summary>Returns (the specified subset of) the releases associated with the given release group.</summary>
/// <param name="releaseGroup">The release group whose releases should be retrieved.</param>
Expand Down Expand Up @@ -1716,7 +1716,7 @@ public IBrowseResults<IRelease> BrowseReleases(IReleaseGroup releaseGroup, int?
/// <exception cref="WebException">When something goes wrong with the web request.</exception>
public IBrowseResults<IRelease> BrowseReleases(ITrack track, int? limit = null, int? offset = null, Include inc = Include.None,
ReleaseType? type = null, ReleaseStatus? status = null)
=> Utils.ResultOf(this.BrowseReleasesAsync(track, limit, offset, inc));
=> Utils.ResultOf(this.BrowseReleasesAsync(track, limit, offset, inc, type, status));

/// <summary>Returns (the specified subset of) the releases associated with the given area.</summary>
/// <param name="area">The area whose releases should be retrieved.</param>
Expand Down Expand Up @@ -1840,7 +1840,7 @@ public Task<IBrowseResults<IRelease>> BrowseReleasesAsync(ITrack track, int? lim
public IBrowseResults<IRelease> BrowseTrackArtistReleases(Guid mbid, int? limit = null, int? offset = null,
Include inc = Include.None, ReleaseType? type = null,
ReleaseStatus? status = null)
=> Utils.ResultOf(this.BrowseTrackArtistReleasesAsync(mbid, limit, offset, inc));
=> Utils.ResultOf(this.BrowseTrackArtistReleasesAsync(mbid, limit, offset, inc, type, status));

/// <summary>
/// Returns (the specified subset of) the releases that include the given artist in a track-level artist credit only.
Expand All @@ -1857,7 +1857,7 @@ public IBrowseResults<IRelease> BrowseTrackArtistReleases(Guid mbid, int? limit
public IBrowseResults<IRelease> BrowseTrackArtistReleases(IArtist artist, int? limit = null, int? offset = null,
Include inc = Include.None, ReleaseType? type = null,
ReleaseStatus? status = null)
=> Utils.ResultOf(this.BrowseTrackArtistReleasesAsync(artist, limit, offset, inc));
=> Utils.ResultOf(this.BrowseTrackArtistReleasesAsync(artist, limit, offset, inc, type, status));

/// <summary>
/// Returns (the specified subset of) the releases that include the given artist in a track-level artist credit only.
Expand Down Expand Up @@ -1905,7 +1905,7 @@ public Task<IBrowseResults<IRelease>> BrowseTrackArtistReleasesAsync(IArtist art
/// <exception cref="WebException">When something goes wrong with the web request.</exception>
public IBrowseResults<IRelease> BrowseTrackReleases(Guid mbid, int? limit = null, int? offset = null, Include inc = Include.None,
ReleaseType? type = null, ReleaseStatus? status = null)
=> Utils.ResultOf(this.BrowseTrackReleasesAsync(mbid, limit, offset, inc));
=> Utils.ResultOf(this.BrowseTrackReleasesAsync(mbid, limit, offset, inc, type, status));

/// <summary>Returns (the specified subset of) the releases associated with the given track.</summary>
/// <param name="mbid">The MBID for the track whose releases should be retrieved.</param>
Expand Down Expand Up @@ -1937,7 +1937,7 @@ public Task<IBrowseResults<IRelease>> BrowseTrackReleasesAsync(Guid mbid, int? l
/// <exception cref="WebException">When something goes wrong with the web request.</exception>
public IBrowseResults<IReleaseGroup> BrowseArtistReleaseGroups(Guid mbid, int? limit = null, int? offset = null,
Include inc = Include.None, ReleaseType? type = null)
=> Utils.ResultOf(this.BrowseArtistReleaseGroupsAsync(mbid, limit, offset, inc));
=> Utils.ResultOf(this.BrowseArtistReleaseGroupsAsync(mbid, limit, offset, inc, type));

/// <summary>Returns (the specified subset of) the release groups associated with the given artist.</summary>
/// <param name="mbid">The MBID for the artist whose release groups should be retrieved.</param>
Expand All @@ -1963,7 +1963,7 @@ public Task<IBrowseResults<IReleaseGroup>> BrowseArtistReleaseGroupsAsync(Guid m
/// <exception cref="WebException">When something goes wrong with the web request.</exception>
public IBrowseResults<IReleaseGroup> BrowseCollectionReleaseGroups(Guid mbid, int? limit = null, int? offset = null,
Include inc = Include.None, ReleaseType? type = null)
=> Utils.ResultOf(this.BrowseCollectionReleaseGroupsAsync(mbid, limit, offset, inc));
=> Utils.ResultOf(this.BrowseCollectionReleaseGroupsAsync(mbid, limit, offset, inc, type));

/// <summary>Returns (the specified subset of) the release groups in the given collection.</summary>
/// <param name="mbid">The MBID for the collection whose contained release groups should be retrieved.</param>
Expand Down Expand Up @@ -1993,7 +1993,7 @@ public Task<IBrowseResults<IReleaseGroup>> BrowseCollectionReleaseGroupsAsync(
/// </remarks>
public IBrowseResults<IReleaseGroup> BrowseReleaseReleaseGroups(Guid mbid, int? limit = null, int? offset = null,
Include inc = Include.None, ReleaseType? type = null)
=> Utils.ResultOf(this.BrowseReleaseReleaseGroupsAsync(mbid, limit, offset, inc));
=> Utils.ResultOf(this.BrowseReleaseReleaseGroupsAsync(mbid, limit, offset, inc, type));

/// <summary>Returns (the specified subset of) the release groups associated with the given release.</summary>
/// <param name="mbid">The MBID for the release whose release groups should be retrieved.</param>
Expand Down Expand Up @@ -2023,7 +2023,7 @@ public Task<IBrowseResults<IReleaseGroup>> BrowseReleaseReleaseGroupsAsync(Guid
/// <exception cref="WebException">When something goes wrong with the web request.</exception>
public IBrowseResults<IReleaseGroup> BrowseReleaseGroups(IArtist artist, int? limit = null, int? offset = null,
Include inc = Include.None, ReleaseType? type = null)
=> Utils.ResultOf(this.BrowseReleaseGroupsAsync(artist, limit, offset, inc));
=> Utils.ResultOf(this.BrowseReleaseGroupsAsync(artist, limit, offset, inc, type));

/// <summary>Returns (the specified subset of) the release groups in the given collection.</summary>
/// <param name="collection">The collection whose contained release groups should be retrieved.</param>
Expand All @@ -2036,7 +2036,7 @@ public IBrowseResults<IReleaseGroup> BrowseReleaseGroups(IArtist artist, int? li
/// <exception cref="WebException">When something goes wrong with the web request.</exception>
public IBrowseResults<IReleaseGroup> BrowseReleaseGroups(ICollection collection, int? limit = null, int? offset = null,
Include inc = Include.None, ReleaseType? type = null)
=> Utils.ResultOf(this.BrowseReleaseGroupsAsync(collection, limit, offset, inc));
=> Utils.ResultOf(this.BrowseReleaseGroupsAsync(collection, limit, offset, inc, type));

/// <summary>Returns (the specified subset of) the release groups associated with the given release.</summary>
/// <param name="release">The release whose release groups should be retrieved.</param>
Expand All @@ -2052,7 +2052,7 @@ public IBrowseResults<IReleaseGroup> BrowseReleaseGroups(ICollection collection,
/// </remarks>
public IBrowseResults<IReleaseGroup> BrowseReleaseGroups(IRelease release, int? limit = null, int? offset = null,
Include inc = Include.None, ReleaseType? type = null)
=> Utils.ResultOf(this.BrowseReleaseGroupsAsync(release, limit, offset, inc));
=> Utils.ResultOf(this.BrowseReleaseGroupsAsync(release, limit, offset, inc, type));

/// <summary>Returns (the specified subset of) the release groups associated with the given artist.</summary>
/// <param name="artist">The artist whose release groups should be retrieved.</param>
Expand Down

0 comments on commit fb47b37

Please sign in to comment.