-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
88e639f
commit a9b4f73
Showing
42 changed files
with
322 additions
and
136 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
1 change: 1 addition & 0 deletions
1
...Features/ChannelAggregate/Application/EventHandlers/ChannelMessagesUpdatedEventHandler.cs
This file contains 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
1 change: 0 additions & 1 deletion
1
Source/Modules/Channels/Features/ChannelAggregate/Application/Misc/GlobalUsings.cs
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
Source/Modules/Channels/Features/ChannelAggregate/Application/Misc/IAssemblyMarker.cs
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
Source/Modules/Channels/Features/ChannelAggregate/Misc/GlobalUsings.cs
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
Source/Modules/Channels/Features/ChannelAggregate/Misc/IAssemblyMarker.cs
This file was deleted.
Oops, something went wrong.
This file contains 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
28 changes: 28 additions & 0 deletions
28
Source/Modules/Channels/Web/Server/ChannelsModuleStartup.cs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using Microsoft.AspNetCore.Builder; | ||
using Microsoft.Extensions.Configuration; | ||
using Microsoft.Extensions.DependencyInjection; | ||
using Microsoft.Extensions.Hosting; | ||
using Modules.Channels.Features.Infrastructure.EFCore; | ||
using Shared.Features.Modules; | ||
using System.Reflection; | ||
using Shared.Features.EFCore; | ||
|
||
namespace Modules.Channels.Web.Server | ||
{ | ||
public class ChannelsModuleStartup : IModuleStartup | ||
{ | ||
public Assembly FeaturesAssembly { get; } = typeof(ChannelsModuleStartup).Assembly; | ||
public void ConfigureServices(IServiceCollection services, IConfiguration configuration) | ||
{ | ||
services.AddControllers().AddApplicationPart(typeof(ChannelsModuleStartup).Assembly); | ||
services.AddSignalR(); | ||
|
||
services.RegisterDbContext<ChannelsDbContext>("Contacts"); | ||
} | ||
|
||
public void Configure(IApplicationBuilder app, IHostEnvironment env) | ||
{ | ||
|
||
} | ||
} | ||
} |
This file contains 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
6 changes: 0 additions & 6 deletions
6
Source/Modules/LandingPages/Web/Server/LandingPagesModuleServerRegistrator.cs
This file was deleted.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
Source/Modules/LandingPages/Web/Server/LandingPagesModuleStartup.cs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using Microsoft.AspNetCore.Builder; | ||
using Microsoft.Extensions.Configuration; | ||
using Microsoft.Extensions.DependencyInjection; | ||
using Microsoft.Extensions.Hosting; | ||
using Shared.Features.Modules; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Reflection; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Modules.LandingPages.Server | ||
{ | ||
public class LandingPagesModuleStartup : IModuleStartup | ||
{ | ||
public Assembly FeaturesAssembly { get; } = typeof(LandingPagesModuleStartup).Assembly; | ||
public void ConfigureServices(IServiceCollection services, IConfiguration configuration) | ||
{ | ||
services.AddRazorPages() | ||
.AddApplicationPart(typeof(LandingPagesModuleStartup).Assembly); | ||
} | ||
|
||
public void Configure(IApplicationBuilder app, IHostEnvironment env) | ||
{ | ||
|
||
} | ||
} | ||
} |
This file contains 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
2 changes: 1 addition & 1 deletion
2
...ion/Web/Server/StripeSessionController.cs → ...er/Controllers/StripeSessionController.cs
This file contains 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
File renamed without changes.
File renamed without changes.
This file contains 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
16 changes: 0 additions & 16 deletions
16
Source/Modules/Subscription/Web/Server/SubscriptionModuleServerRegistrator.cs
This file was deleted.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
Source/Modules/Subscription/Web/Server/SubscriptionsModuleStartup.cs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using Microsoft.AspNetCore.Builder; | ||
using Microsoft.Extensions.Configuration; | ||
using Microsoft.Extensions.DependencyInjection; | ||
using Shared.Features.Modules; | ||
using Stripe; | ||
using System.Reflection; | ||
|
||
namespace Modules.Subscriptions.Web.Server | ||
{ | ||
public class SubscriptionsModuleStartup : IModuleStartup | ||
{ | ||
public Assembly FeaturesAssembly { get; } = typeof(SubscriptionsModuleStartup).Assembly; | ||
public void ConfigureServices(IServiceCollection services, IConfiguration configuration) | ||
{ | ||
StripeConfiguration.ApiKey = configuration["Stripe:StripeKey"]; | ||
//services.Configure<StripeOptions>(configuration); | ||
//services.AddScoped<IStripeSubscriptionService, StripeSubscriptionTypeService>(); | ||
|
||
services.AddControllers() | ||
.AddApplicationPart(typeof(SubscriptionsModuleStartup).Assembly); | ||
} | ||
|
||
public void Configure(IApplicationBuilder app, IHostEnvironment env) | ||
{ | ||
|
||
} | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
2 changes: 1 addition & 1 deletion
2
Source/Shared/Shared.Infrastructure/CQRS/DomainEvent/DomainEventDispatcher.cs
This file contains 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
2 changes: 1 addition & 1 deletion
2
Source/Shared/Shared.Infrastructure/CQRS/DomainEvent/IDomainEventDispatcher.cs
This file contains 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
2 changes: 1 addition & 1 deletion
2
Source/Shared/Shared.Infrastructure/CQRS/DomainEvent/IDomainEventHandler.cs
This file contains 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
This file contains 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
7 changes: 7 additions & 0 deletions
7
Source/Shared/Shared.Infrastructure/EFCore/Configuration/EFCoreConfiguration.cs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace Shared.Features.EFCore.Configuration | ||
{ | ||
public class EFCoreConfiguration | ||
{ | ||
public string SQLServerConnectionString { get; set; } | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
Source/Shared/Shared.Infrastructure/EFCore/Configuration/EFCoreConfigurationConstants.cs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace Shared.Features.EFCore.Configuration | ||
{ | ||
public class EFCoreConfigurationConstants | ||
{ | ||
public const string DevelopmentSQLServerConnectionString = nameof(DevelopmentSQLServerConnectionString); | ||
public const string ProductionSQLServerConnectionString = nameof(ProductionSQLServerConnectionString); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
Source/Shared/Shared.Infrastructure/EFCore/Configuration/EFCoreConfigurationRegistrator.cs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using Microsoft.Extensions.Configuration; | ||
using Microsoft.Extensions.DependencyInjection; | ||
using Microsoft.Extensions.Options; | ||
|
||
namespace Shared.Features.EFCore.Configuration | ||
{ | ||
public static class EFCoreConfigurationRegistrator | ||
{ | ||
public static IServiceCollection RegisterEFCore(this IServiceCollection services, IConfiguration configuration) | ||
{ | ||
services.AddScoped(sp => | ||
{ | ||
EFCoreConfiguration tc = new EFCoreConfiguration(); | ||
configuration.GetSection(nameof(EFCoreConfiguration)).Bind(tc); | ||
return tc; | ||
}); | ||
services.Configure<EFCoreConfiguration>(configuration.GetSection(nameof(EFCoreConfiguration))); | ||
services.AddSingleton<IValidateOptions<EFCoreConfiguration>, EFCoreConfigurationValidator>(); | ||
|
||
return services; | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
Source/Shared/Shared.Infrastructure/EFCore/Configuration/EFCoreConfigurationValidator.cs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using Microsoft.Extensions.Options; | ||
|
||
namespace Shared.Features.EFCore.Configuration | ||
{ | ||
internal class EFCoreConfigurationValidator : IValidateOptions<EFCoreConfiguration> | ||
{ | ||
public ValidateOptionsResult Validate(string name, EFCoreConfiguration efCoreConfiguration) | ||
{ | ||
//if (string.IsNullOrEmpty(efCoreConfiguration.SQLServerConnectionString)) | ||
//{ | ||
// return ValidateOptionsResult.Fail(""); | ||
//} | ||
|
||
return ValidateOptionsResult.Success; | ||
} | ||
} | ||
} |
Oops, something went wrong.