This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace Couchbase.GeoSearchApp | |
| { | |
| using System; | |
| public class CreateEventRequest | |
| { | |
| public string Subject { get; set; } | |
| public DateTimeOffset Date { get; set; } | |
| public string Description { get; set; } | |
| public string Address { get; set; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace Couchbase.GeoSearchApp.Controllers | |
| { | |
| using Couchbase.Core; | |
| using Couchbase.Extensions.DependencyInjection; | |
| using Microsoft.AspNetCore.Mvc; | |
| using System; | |
| using System.Threading.Tasks; | |
| [Route("api/[controller]")] | |
| [ApiController] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace Couchbase.GeoSearchApp | |
| { | |
| public class GetUpcomingEventsRequest | |
| { | |
| public double Latitude { get; set; } | |
| public double Longitude { get; set; } | |
| public string Radius { get; set; } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace Couchbase.GeoSearchApp | |
| { | |
| using System; | |
| public class GetUpcomingEventsResponse | |
| { | |
| public string Subject { get; set; } | |
| public DateTimeOffset Date { get; set; } | |
| public string Address { get; set; } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace Couchbase.GeoSearchApp.Controllers | |
| { | |
| using Couchbase.Core; | |
| using Couchbase.Extensions.DependencyInjection; | |
| using Couchbase.Search; | |
| using Couchbase.Search.Queries.Geo; | |
| using Microsoft.AspNetCore.Mvc; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Threading.Tasks; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "EventStore": { | |
| "ConnectionString": "ConnectTo=tcp://admin:changeit@localhost:1113; DefaultUserCredentials=admin:changeit;", | |
| "ConnectionName": "Task" | |
| }, | |
| "Logging": { | |
| "LogLevel": { | |
| "Default": "Information", | |
| "Microsoft": "Warning", | |
| "Microsoft.Hosting.Lifetime": "Information" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace EventSourcingTaskApp | |
| { | |
| using EventStore.ClientAPI; | |
| using Microsoft.AspNetCore.Builder; | |
| using Microsoft.AspNetCore.Hosting; | |
| using Microsoft.Extensions.Configuration; | |
| using Microsoft.Extensions.DependencyInjection; | |
| using Microsoft.Extensions.Hosting; | |
| public class Startup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace EventSourcingTaskApp.Core.Framework | |
| { | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| public abstract class Aggregate | |
| { | |
| readonly IList<object> _changes = new List<object>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace EventSourcingTaskApp.Infrastructure | |
| { | |
| using EventSourcingTaskApp.Core.Framework; | |
| using EventStore.ClientAPI; | |
| using System; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Text.Json; | |
| using System.Threading.Tasks; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace EventSourcingTaskApp | |
| { | |
| using EventSourcingTaskApp.Infrastructure; | |
| using EventStore.ClientAPI; | |
| using Microsoft.AspNetCore.Builder; | |
| using Microsoft.AspNetCore.Hosting; | |
| using Microsoft.Extensions.Configuration; | |
| using Microsoft.Extensions.DependencyInjection; | |
| using Microsoft.Extensions.Hosting; |