Property | Type | Description | |
---|---|---|---|
_info | CacheItem | ||
_phoenixState | IPhoenixState |
Property | Type | Description | |
---|---|---|---|
DieAsync | Task | ||
GetCacheItem | CacheItem | ||
GetCurrentState | IPhoenixState | ||
GetTargetInstance | object | ||
InvokeAndGetBareResult | Task | ||
RebornCallback | void |
Method | Description | |
---|---|---|
Dispose ( ) : void |
Dispose the timer and remove it from Global.Cache
|
|
Phoenix ( _IInvocation invocation, CacheItem info ) : System |
Initialize a phoenix with provided cacheDuration and staleWhileRevalidate values
|
|
Reborn ( ) : void |
Refresh the cache and change the internal IPhoenixState to avoid refreshing too many unnecessary times The call will happen in background so the caller will not have to wait
|
Method | Description | |
---|---|---|
FireAsync ( ) : Task |
Rebuild the cache and return the new IPhoenixState
|
|
Retry ( System.TimeSpan timeSpan ) : void |
Retry phoenix reborn after a timespan
|
Method | Description | |
---|---|---|
DieAsync ( ) : Task | ||
GetCacheItem ( object invocationBareResult ) : CacheItem | ||
GetCurrentState ( ) : IPhoenixState | ||
GetTargetInstance ( ICacheDependencyScope scope ) : object | ||
InvokeAndGetBareResult ( object serviceInstance ) : Task | ||
RebornCallback ( object phoenixId ) : void |
public Phoenix ( _IInvocation invocation, CacheItem info ) : System | ||
invocation | _IInvocation | |
info | CacheItem | |
return | System |
protected Retry ( System.TimeSpan timeSpan ) : void | ||
timeSpan | System.TimeSpan | |
return | void |