Class NOPObjectStore
Implements ObjectStore service that does nothing on checkin, always returning null for checkout/fetch
Inheritance
System.Object
NOPObjectStore
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Azos.dll
Syntax
public sealed class NOPObjectStore : ApplicationComponent, IObjectStoreImplementation, IObjectStore, IApplicationComponent, ILocalizedTimeProvider, IDisposable, IConfigurable, IInstrumentable, IExternallyParameterized
Properties
ComponentLogTopic
Declaration
public override string ComponentLogTopic { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
ExternalParameters
Declaration
public IEnumerable<KeyValuePair<string, Type>> ExternalParameters { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.Type>> |
|
InstrumentationEnabled
Declaration
public bool InstrumentationEnabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
LocalizedTime
Declaration
public DateTime LocalizedTime { get; }
Property Value
Type |
Description |
System.DateTime |
|
ObjectLifeSpanMS
Declaration
public int ObjectLifeSpanMS { get; }
Property Value
Type |
Description |
System.Int32 |
|
TimeLocation
Declaration
public TimeLocation TimeLocation { get; }
Property Value
Methods
CheckIn(Guid, Int32)
Puts an object reference "value" into store identified by the "key"
Declaration
public bool CheckIn(Guid key, int msTimeout = 0)
Parameters
Type |
Name |
Description |
System.Guid |
key |
|
System.Int32 |
msTimeout |
|
Returns
Type |
Description |
System.Boolean |
|
CheckIn(Guid, Object, Int32)
Declaration
public void CheckIn(Guid key, object value, int msTimeout = 0)
Parameters
Type |
Name |
Description |
System.Guid |
key |
|
System.Object |
value |
|
System.Int32 |
msTimeout |
|
CheckInUnderNewKey(Guid, Guid, Object, Int32)
Puts an object reference "value" into store identified by the "oldKey" under the "newKey".
If oldKey was not checked in, then checks-in under new key as normally would
Declaration
public void CheckInUnderNewKey(Guid oldKey, Guid newKey, object value, int msTimeout = 0)
Parameters
Type |
Name |
Description |
System.Guid |
oldKey |
|
System.Guid |
newKey |
|
System.Object |
value |
|
System.Int32 |
msTimeout |
|
CheckOut(Guid)
Declaration
public object CheckOut(Guid key)
Parameters
Type |
Name |
Description |
System.Guid |
key |
|
Returns
Type |
Description |
System.Object |
|
Declaration
public void Configure(IConfigSectionNode node)
Parameters
Delete(Guid)
Declaration
public bool Delete(Guid key)
Parameters
Type |
Name |
Description |
System.Guid |
key |
|
Returns
Type |
Description |
System.Boolean |
|
ExternalGetParameter(String, out Object, String[])
Declaration
public bool ExternalGetParameter(string name, out object value, params string[] groups)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Object |
value |
|
System.String[] |
groups |
|
Returns
Type |
Description |
System.Boolean |
|
ExternalParametersForGroups(String[])
Declaration
public IEnumerable<KeyValuePair<string, Type>> ExternalParametersForGroups(params string[] groups)
Parameters
Type |
Name |
Description |
System.String[] |
groups |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.Type>> |
|
ExternalSetParameter(String, Object, String[])
Declaration
public bool ExternalSetParameter(string name, object value, params string[] groups)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Object |
value |
|
System.String[] |
groups |
|
Returns
Type |
Description |
System.Boolean |
|
Fetch(Guid, Boolean)
Declaration
public object Fetch(Guid key, bool touch = false)
Parameters
Type |
Name |
Description |
System.Guid |
key |
|
System.Boolean |
touch |
|
Returns
Type |
Description |
System.Object |
|
LocalizedTimeToUniversalTime(DateTime)
Declaration
public DateTime LocalizedTimeToUniversalTime(DateTime local)
Parameters
Type |
Name |
Description |
System.DateTime |
local |
|
Returns
Type |
Description |
System.DateTime |
|
UndoCheckout(Guid)
Declaration
public bool UndoCheckout(Guid key)
Parameters
Type |
Name |
Description |
System.Guid |
key |
|
Returns
Type |
Description |
System.Boolean |
|
UniversalTimeToLocalizedTime(DateTime)
Declaration
public DateTime UniversalTimeToLocalizedTime(DateTime utc)
Parameters
Type |
Name |
Description |
System.DateTime |
utc |
|
Returns
Type |
Description |
System.DateTime |
|
Implements
System.IDisposable
Extension Methods