Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release Codename 'Aragorn' #77

Merged
merged 55 commits into from
Nov 5, 2021
Merged

Release Codename 'Aragorn' #77

merged 55 commits into from
Nov 5, 2021

Conversation

woksin
Copy link
Contributor

@woksin woksin commented Oct 25, 2021

Summary

Fixes a problem with aggregates so that it now can be used in an async way. Registration of event types and aggregate roots to the Runtime.

Added

  • Registration of alias for event types through the attribute or builder
  • Registration of alias fro aggregate roots through the attribute
  • Default alias registration for event type classes and aggregate root classes. Default is the name of the class
  • Extension Methods on the ClientBuilder for registering all event handlers, event types, projections, embeddings, aggregate roots by discovering them through the assemblies and DLLs in the solution

Changed

  • Log Level for registered Event Processors to Information
  • The Getting Started, Aggregates, Projections and Embeddings tutorials updated to reflect new features of the SDK

Fixed

  • A problem where you couldn't use an aggregate root in an asynchronous manner

@woksin woksin added the major label Oct 25, 2021
@jakhog jakhog marked this pull request as draft October 25, 2021 13:04
Samples/Tutorials/GettingStarted/Program.cs Outdated Show resolved Hide resolved
Source/Aggregates/AggregateRootType.cs Show resolved Hide resolved
Source/Aggregates/Builders/AggregateRootsBuilder.cs Outdated Show resolved Hide resolved
Source/Events/EventType.cs Outdated Show resolved Hide resolved
Source/SDK/ClientBuilder.cs Outdated Show resolved Hide resolved
Source/SDK/ClientBuilder.cs Outdated Show resolved Hide resolved
Source/SDK/ClientBuilder.cs Outdated Show resolved Hide resolved
// Copyright (c) Dolittle. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 2 locations. Consider refactoring.

// Copyright (c) Dolittle. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 2 locations. Consider refactoring.

}
};

async Task Register(EventTypeRegistrationRequest request, CancellationToken cancellationToken)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Method Register has 26 lines of code (exceeds 25 allowed). Consider refactoring.

return request;
}

async Task Register(EventTypeRegistrationRequest request, CancellationToken cancellationToken)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 2 locations. Consider refactoring.

/// <param name="aggregateRootTypes">The aggregate root types to register.</param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/>.</param>
/// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>
public Task Register(IEnumerable<AggregateRootType> aggregateRootTypes, CancellationToken cancellationToken)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 2 locations. Consider refactoring.

/// <param name="eventTypes">The event types to register.</param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/>.</param>
/// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>
public Task Register(IEnumerable<EventType> eventTypes, CancellationToken cancellationToken)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 2 locations. Consider refactoring.

@jakhog jakhog marked this pull request as ready for review November 5, 2021 09:04
Copy link
Contributor

@jakhog jakhog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jakhog jakhog merged commit 7c0c355 into master Nov 5, 2021
@jakhog jakhog deleted the 11.0.0-aragorn branch November 5, 2021 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants