Skip to content

Commit

Permalink
Added 'pip-services' descriptors
Browse files Browse the repository at this point in the history
  • Loading branch information
daniil-tr committed Jan 13, 2020
1 parent 35d28c2 commit 1462860
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Memcached components for Pip.Services in .NET Changelog

## <a name="3.0.0-3.0.2"></a> 3.0.0-3.0.2 (2018-09-04)
## <a name="3.0.0-3.0.4"></a> 3.0.0-3.0.4 (2020-01-13)

### Breaking Changes
* Moved to a separate package
* Added 'pip-services' descriptors

## <a name="1.1.0-1.1.32"></a> 1.1.0-1.1.32 (2018-07-23)

Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pip-services3-memcached",
"registry": "pipdevs",
"version": "3.0.3",
"version": "3.0.4",
"build": "0"
}
15 changes: 10 additions & 5 deletions src/Build/DefaultMemcachedFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,22 @@ namespace PipServices3.Memcached.Build
/// <a href="https://rawgit.com/pip-services3-dotnet/pip-services3-memcached-dotnet/master/doc/api/class_pip_services_1_1_memcached_1_1_lock_1_1_memcached_lock.html">MemcachedLock</a>
public class DefaultMemcachedFactory: Factory
{
public static readonly Descriptor Descriptor = new Descriptor("pip-services3", "factory", "memcached", "default", "1.0");
public static readonly Descriptor MemcachedCacheDescriptor = new Descriptor("pip-services3", "cache", "memcached", "*", "1.0");
public static readonly Descriptor MemcachedLockDescriptor = new Descriptor("pip-services3", "lock", "memcached", "*", "1.0");
public static readonly Descriptor Descriptor = new Descriptor("pip-services", "factory", "memcached", "default", "1.0");
public static readonly Descriptor Descriptor3 = new Descriptor("pip-services3", "factory", "memcached", "default", "1.0");
public static readonly Descriptor MemcachedCacheDescriptor = new Descriptor("pip-services", "cache", "memcached", "*", "1.0");
public static readonly Descriptor MemcachedCache3Descriptor = new Descriptor("pip-services3", "cache", "memcached", "*", "1.0");
public static readonly Descriptor MemcachedLockDescriptor = new Descriptor("pip-services", "lock", "memcached", "*", "1.0");
public static readonly Descriptor MemcachedLock3Descriptor = new Descriptor("pip-services3", "lock", "memcached", "*", "1.0");

/// <summary>
/// Create a new instance of the factory.
/// </summary>
public DefaultMemcachedFactory()
{
RegisterAsType(DefaultMemcachedFactory.MemcachedCacheDescriptor, typeof(MemcachedCache));
RegisterAsType(DefaultMemcachedFactory.MemcachedLockDescriptor, typeof(MemcachedLock));
RegisterAsType(MemcachedCacheDescriptor, typeof(MemcachedCache));
RegisterAsType(MemcachedCache3Descriptor, typeof(MemcachedCache));
RegisterAsType(MemcachedLockDescriptor, typeof(MemcachedLock));
RegisterAsType(MemcachedLock3Descriptor, typeof(MemcachedLock));
}
}
}
2 changes: 1 addition & 1 deletion src/src.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<RootNamespace>PipServices3.Memcached</RootNamespace>
<ApplicationIcon />
<Win32Resource />
<Version>3.0.3</Version>
<Version>3.0.4</Version>
<Authors>Sergey Seroukhov, Alex Mazur</Authors>
<Copyright>Conceptual Vision Consulting LLC. 2017-2018</Copyright>
<Description>Memcached components for Pip.Services in .NET</Description>
Expand Down

0 comments on commit 1462860

Please sign in to comment.