Skip to content

Commit

Permalink
Made Aggregates classes public because of current Marten v4 alpha cod…
Browse files Browse the repository at this point in the history
…egen limitation (I hope to revert this commit in the future) - JasperFx/marten#1655, dotnet/runtime#12454
  • Loading branch information
oskardudycz committed Dec 6, 2020
1 parent bee5842 commit 6c34ad1
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Sample/Tickets/Tickets/Concerts/Concert.cs
Expand Up @@ -3,7 +3,7 @@

namespace Tickets.Concerts
{
internal class Concert : Aggregate
public class Concert : Aggregate
{
public string Name { get; private set; }

Expand Down
4 changes: 2 additions & 2 deletions Sample/Tickets/Tickets/Reservations/Reservation.cs
Expand Up @@ -5,7 +5,7 @@

namespace Tickets.Reservations
{
internal class Reservation : Aggregate
public class Reservation : Aggregate
{
public Guid SeatId { get; private set; }

Expand All @@ -26,7 +26,7 @@ internal class Reservation : Aggregate
numberGenerator,
seatId);
}

private Reservation(
Guid id,
IReservationNumberGenerator numberGenerator,
Expand Down
Expand Up @@ -2,7 +2,7 @@

namespace Tickets.Reservations
{
internal interface IReservationNumberGenerator
public interface IReservationNumberGenerator
{
string Next();
}
Expand Down
2 changes: 1 addition & 1 deletion Sample/Tickets/Tickets/Seats/Seat.cs
Expand Up @@ -3,7 +3,7 @@

namespace Tickets.Seats
{
internal class Seat : Aggregate
public class Seat : Aggregate
{
public Guid ConcertId { get; private set; }

Expand Down
2 changes: 1 addition & 1 deletion Sample/Tickets/Tickets/Tickets/Ticket.cs
Expand Up @@ -3,7 +3,7 @@

namespace Tickets.Tickets
{
internal class Ticket : Aggregate
public class Ticket : Aggregate
{
public Guid SeatId { get; private set; }

Expand Down
Expand Up @@ -5,7 +5,7 @@

namespace MeetingsManagement.Meetings
{
internal class Meeting: Aggregate
public class Meeting: Aggregate
{
public string Name { get; private set; }

Expand Down
2 changes: 2 additions & 0 deletions Workshops/PracticalEventSourcing/Carts/Carts.Api/Startup.cs
@@ -1,3 +1,4 @@
using System.Runtime.CompilerServices;
using Core;
using Core.Streaming.Kafka;
using Core.WebApi.Middlewares.ExceptionHandling;
Expand All @@ -9,6 +10,7 @@
using Microsoft.OpenApi.Models;
using Newtonsoft.Json.Converters;

[assembly: InternalsVisibleTo("Marten.Generated")]
namespace Carts.Api
{
public class Startup
Expand Down
2 changes: 1 addition & 1 deletion Workshops/PracticalEventSourcing/Carts/Carts/Carts/Cart.cs
Expand Up @@ -10,7 +10,7 @@

namespace Carts.Carts
{
internal class Cart: Aggregate
public class Cart: Aggregate
{
public Guid ClientId { get; private set; }

Expand Down
3 changes: 3 additions & 0 deletions Workshops/PracticalEventSourcing/Carts/Carts/Config.cs
@@ -1,8 +1,11 @@
using System.Runtime.CompilerServices;
using Carts.Carts;
using Core.Marten;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;

[assembly: InternalsVisibleTo("Marten.Generated")]

namespace Carts
{
public static class Config
Expand Down

0 comments on commit 6c34ad1

Please sign in to comment.