Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
删除遗留的event的仓储
Browse files Browse the repository at this point in the history
  • Loading branch information
ElderJames committed Aug 22, 2017
1 parent 98a3015 commit 1597b9b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 94 deletions.
6 changes: 3 additions & 3 deletions src/Shriek/ShriekBootstrapper.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Shriek.Messages;
using System;
using Shriek.Messages;
using Microsoft.Extensions.DependencyInjection;
using Shriek.Storage;
using Shriek.Utils;
Expand All @@ -7,15 +8,14 @@ namespace Shriek
{
public static class ShriekBootstrapper
{
public static IServiceCollection AddShriek(this IServiceCollection services)
public static IServiceCollection AddShriek(this IServiceCollection services, Action<ShriekOption> optionAction = null)
{
services.Scan(scan => scan.FromAssemblies(Reflection.GetAssemblies())
.AddClasses()
.AsImplementedInterfaces()
.WithScopedLifetime());

services.AddScoped<IEventStorage, InMemoryEventStorage>();
services.AddScoped(typeof(IRepository<>), typeof(Repository<>));
services.AddTransient<IMessageProcessor, InProcessMessageProcessor>();
return services;
}
Expand Down
14 changes: 0 additions & 14 deletions src/Shriek/Storage/IRepository.cs

This file was deleted.

77 changes: 0 additions & 77 deletions src/Shriek/Storage/Repository.cs

This file was deleted.

0 comments on commit 1597b9b

Please sign in to comment.