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

Commit

Permalink
Merge pull request #240 from umco/develop
Browse files Browse the repository at this point in the history
Preparing Ditto 0.12.1 release
  • Loading branch information
leekelleher authored Sep 26, 2018
2 parents 6ec0a65 + 8fe0456 commit 59faa63
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
image: Visual Studio 2017

# version format
version: 0.12.0.{build}
version: 0.12.1.{build}

# UMBRACO_PACKAGE_PRERELEASE_SUFFIX if a rtm release build this should be blank, otherwise if empty will default to alpha
# example UMBRACO_PACKAGE_PRERELEASE_SUFFIX=beta
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,17 @@ private void Initialize(IEnumerable<Type> types, bool inherit = false)
}
}

private static AttributedTypeResolver<TAttribute> _resolver;

/// <summary>
/// A static instance of the attributed type resolver.
/// </summary>
public static AttributedTypeResolver<TAttribute> Current
{
get { return _resolver; }
set { _resolver = value; }
}
public static AttributedTypeResolver<TAttribute> Current { get; set; }

/// <summary>
/// Returns true if the resolver instance is currently available.
/// </summary>
public static bool HasCurrent
{
get { return _resolver != null; }
get { return Current != null; }
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Our.Umbraco.Ditto/Ditto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public static bool TryGetTypeAttribute<TAttribute>(Type objectType, out TAttribu
{
if (AttributedTypeResolver<TAttribute>.HasCurrent == false)
{
AttributedTypeResolver<TAttribute>.Current = AttributedTypeResolver<TAttribute>.Create(new[] { objectType });
AttributedTypeResolver<TAttribute>.Current = AttributedTypeResolver<TAttribute>.Create(new[] { objectType }, inherit);
}

return AttributedTypeResolver<TAttribute>.Current.TryGetTypeAttribute(objectType, out attribute, inherit);
Expand Down

0 comments on commit 59faa63

Please sign in to comment.