Skip to content
This repository has been archived by the owner on Mar 17, 2020. It is now read-only.

Commit

Permalink
Using netstandard1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
VahidN committed Feb 9, 2017
1 parent ebf2bc7 commit e8ad4f6
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -20,10 +20,10 @@ To use its in-memory caching mechanism, add these entries to the `project.json`
```json
{
"dependencies": {
"EFSecondLevelCache.Core": "1.0.2-*",
"CacheManager.Core": "0.9.1",
"CacheManager.Microsoft.Extensions.Caching.Memory": "0.9.1",
"CacheManager.Serialization.Json": "0.9.1"
"EFSecondLevelCache.Core": "1.0.3-*",
"CacheManager.Core": "0.9.3",
"CacheManager.Microsoft.Extensions.Caching.Memory": "0.9.3",
"CacheManager.Serialization.Json": "0.9.3"
}
}
```
Expand All @@ -47,7 +47,7 @@ namespace EFSecondLevelCache.Core.AspNetCoreSample
services.AddEFSecondLevelCache();

services.AddSingleton(typeof(ICacheManager<>), typeof(BaseCacheManager<>));
services.AddSingleton(typeof(CacheManagerConfiguration),
services.AddSingleton(typeof(ICacheManagerConfiguration),
new CacheManager.Core.ConfigurationBuilder()
.WithJsonSerializer()
.WithMicrosoftMemoryCacheHandle()
Expand Down
4 changes: 2 additions & 2 deletions src/EFSecondLevelCache.Core/project.json
@@ -1,5 +1,5 @@
{
"version": "1.0.2-*",
"version": "1.0.3-*",

"authors": [ "Vahid Nasiri" ],
"packOptions": {
Expand All @@ -21,7 +21,7 @@
},

"frameworks": {
"netstandard1.6": {
"netstandard1.3": {
"imports": "dnxcore50"
}
},
Expand Down
Expand Up @@ -34,7 +34,7 @@ public void ConfigureServices(IServiceCollection services)

services.AddEFSecondLevelCache();
services.AddSingleton(typeof(ICacheManager<>), typeof(BaseCacheManager<>));
services.AddSingleton(typeof(CacheManagerConfiguration),
services.AddSingleton(typeof(ICacheManagerConfiguration),
new CacheManager.Core.ConfigurationBuilder()
.WithJsonSerializer()
.WithMicrosoftMemoryCacheHandle()
Expand Down
Expand Up @@ -3,7 +3,7 @@
"CacheManager.Core": "0.9.3",
"CacheManager.Microsoft.Extensions.Caching.Memory": "0.9.3",
"CacheManager.Serialization.Json": "0.9.3",
"EFSecondLevelCache.Core": "1.0.2-*",
"EFSecondLevelCache.Core": "1.0.3-*",
"Microsoft.AspNetCore.Diagnostics": "1.1.0",
"Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore": "1.1.0",
"Microsoft.AspNetCore.Mvc": "1.1.1",
Expand Down
18 changes: 9 additions & 9 deletions src/Tests/EFSecondLevelCache.Core.Tests/TestsBase.cs
Expand Up @@ -30,7 +30,7 @@ public static IServiceProvider GetServiceProvider()
services.AddEFSecondLevelCache();

services.AddSingleton(typeof(ICacheManager<>), typeof(BaseCacheManager<>));
services.AddSingleton(typeof(CacheManagerConfiguration),
services.AddSingleton(typeof(ICacheManagerConfiguration),
new CacheManager.Core.ConfigurationBuilder()
.WithJsonSerializer()
.WithMicrosoftMemoryCacheHandle()
Expand All @@ -53,15 +53,15 @@ public static IEFCacheServiceProvider GetCacheServiceProvider()
var services = new ServiceCollection();
services.AddEFSecondLevelCache();

services.AddSingleton(typeof(ICacheManagerConfiguration),
new CacheManager.Core.ConfigurationBuilder()
.WithJsonSerializer()
.WithMicrosoftMemoryCacheHandle()
.WithExpiration(ExpirationMode.Absolute, TimeSpan.FromMinutes(10))
.DisablePerformanceCounters()
.DisableStatistics()
.Build());
services.AddSingleton(typeof(ICacheManager<>), typeof(BaseCacheManager<>));
services.AddSingleton(typeof(CacheManagerConfiguration),
new CacheManager.Core.ConfigurationBuilder()
.WithJsonSerializer()
.WithMicrosoftMemoryCacheHandle()
.WithExpiration(ExpirationMode.Absolute, TimeSpan.FromMinutes(10))
.DisablePerformanceCounters()
.DisableStatistics()
.Build());

var serviceProvider = services.BuildServiceProvider();
return serviceProvider.GetService<IEFCacheServiceProvider>();
Expand Down
2 changes: 1 addition & 1 deletion src/Tests/EFSecondLevelCache.Core.Tests/project.json
Expand Up @@ -3,7 +3,7 @@

"testRunner": "mstest",
"dependencies": {
"EFSecondLevelCache.Core": "1.0.2-*",
"EFSecondLevelCache.Core": "1.0.3-*",
"EFSecondLevelCache.Core.AspNetCoreSample": "1.0.0-*",
"Microsoft.EntityFrameworkCore": "1.1.0",
"Microsoft.EntityFrameworkCore.InMemory": "1.1.0",
Expand Down

0 comments on commit e8ad4f6

Please sign in to comment.