View Source
Class IdKeyMap
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public class IdKeyMap : IIdKeyMap
Constructors
View Source
IdKeyMap(ICoreScopeProvider, IIdKeyMapRepository)
Declaration
public IdKeyMap(ICoreScopeProvider scopeProvider, IIdKeyMapRepository idKeyMapRepository)
Parameters
Methods
View Source
ClearCache()
Declaration
View Source
ClearCache(Guid)
Declaration
public void ClearCache(Guid key)
Parameters
Type |
Name |
Description |
Guid |
key |
|
View Source
ClearCache(Int32)
Declaration
public void ClearCache(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
View Source
Dispose()
Declaration
View Source
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
View Source
GetIdForKey(Guid, UmbracoObjectTypes)
Declaration
public Attempt<int> GetIdForKey(Guid key, UmbracoObjectTypes umbracoObjectType)
Parameters
Returns
Type |
Description |
Attempt<System.Int32> |
|
View Source
GetIdForUdi(Udi)
Declaration
public Attempt<int> GetIdForUdi(Udi udi)
Parameters
Type |
Name |
Description |
Udi |
udi |
|
Returns
Type |
Description |
Attempt<System.Int32> |
|
View Source
GetKeyForId(Int32, UmbracoObjectTypes)
Declaration
public Attempt<Guid> GetKeyForId(int id, UmbracoObjectTypes umbracoObjectType)
Parameters
Returns
View Source
GetUdiForId(Int32, UmbracoObjectTypes)
Declaration
public Attempt<Udi> GetUdiForId(int id, UmbracoObjectTypes umbracoObjectType)
Parameters
Returns
View Source
SetMapper(UmbracoObjectTypes, Func<Int32, Guid>, Func<Guid, Int32>)
Declaration
public void SetMapper(UmbracoObjectTypes umbracoObjectType, Func<int, Guid> id2key, Func<Guid, int> key2id)
Parameters
Type |
Name |
Description |
UmbracoObjectTypes |
umbracoObjectType |
|
Func<System.Int32, Guid> |
id2key |
|
Func<Guid, System.Int32> |
key2id |
|