Cleanup
This commit is contained in:
@@ -15,16 +15,24 @@ namespace Umbraco.Cms.Core.Web
|
||||
{ }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the <see cref="UmbracoContext"/> object.
|
||||
/// Tries to get the <see cref="UmbracoContext"/> object.
|
||||
/// </summary>
|
||||
///
|
||||
public bool TryGetUmbracoContext(out IUmbracoContext umbracoContext)
|
||||
{
|
||||
umbracoContext = Value;
|
||||
|
||||
return umbracoContext is not null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Clears the current <see cref="UmbracoContext"/> object.
|
||||
/// </summary>
|
||||
public void Clear() => Value = null;
|
||||
|
||||
/// <summary>
|
||||
/// Sets the <see cref="UmbracoContext"/> object.
|
||||
/// </summary>
|
||||
/// <param name="umbracoContext"></param>
|
||||
public void Set(IUmbracoContext umbracoContext) => Value = umbracoContext;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
namespace Umbraco.Cms.Core.Web
|
||||
{
|
||||
/// <summary>
|
||||
/// Provides access to a TryGetUmbracoContext bool method that will return true if the "current" <see cref="IUmbracoContext"/>. is not null.
|
||||
/// Provides a Clear() method that will clear the current UmbracoContext.
|
||||
/// Provides a Set() method that til set the current UmbracoContext.
|
||||
/// Provides access to a TryGetUmbracoContext bool method that will return true if the "current" <see cref="IUmbracoContext"/> is not null.
|
||||
/// Provides a Clear() method that will clear the current <see cref="UmbracoContext"/> object.
|
||||
/// Provides a Set() method that til set the current <see cref="UmbracoContext"/> object.
|
||||
/// </summary>
|
||||
public interface IUmbracoContextAccessor
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user