Permalink
Browse files

RemoteQueryCacheDecorator still under constructions. Updated automapp…

…er to newest version
  • Loading branch information...
ErikasKontenis committed May 14, 2018
1 parent 7a3d728 commit d181deda009444c4143e10740195259f41fad3d5
@@ -11,7 +11,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="AutoMapper" Version="6.2.1" />
<PackageReference Include="AutoMapper" Version="6.2.2" />
<PackageReference Include="Microsoft.AspNetCore.Identity" Version="2.0.3" />
<PackageReference Include="Microsoft.Extensions.Identity.Stores" Version="2.0.3" />
<PackageReference Include="morelinq" Version="2.10.0" />
@@ -5,7 +5,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="AutoMapper" Version="6.2.1" />
<PackageReference Include="AutoMapper" Version="6.2.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.7.0" />
<PackageReference Include="Moq" Version="4.8.2" />
<PackageReference Include="MSTest.TestAdapter" Version="1.3.0" />
@@ -9,7 +9,7 @@
<UserSecretsId>f8b84cd3-dc4e-4dbd-b97c-4b06157afb0d</UserSecretsId>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="AutoMapper" Version="6.2.1" />
<PackageReference Include="AutoMapper" Version="6.2.2" />
<PackageReference Include="CacheManager.Core" Version="1.1.2" />
<PackageReference Include="CacheManager.Microsoft.Extensions.Configuration" Version="1.1.2" />
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.8" />
View
@@ -293,8 +293,8 @@ private void InitializeContainer(IApplicationBuilder app)
container.Register(typeof(IQuery<,>), new[] { typeof(GetCategoryBaseQuery).Assembly });
// TODO: Temporary do not cache any queries because of lost EF model reference and impossibility to track decorated query model-result.
container.RegisterDecorator(typeof(IRemoteQuery<,>),
typeof(RemoteQueryCacheDecorator<,>));
//container.RegisterDecorator(typeof(IRemoteQuery<,>),
// typeof(RemoteQueryCacheDecorator<,>));
// TODO: Refactor to use simpleInjector UseMiddleware
container.Register<WorkContextMiddleware>();

0 comments on commit d181ded

Please sign in to comment.