Class StickyOperation
- Namespace
- Phoesion.Glow.SDK.Firefly
- Assembly
- Phoesion.Glow.SDK.Firefly.Abstractions.dll
public abstract class StickyOperation : IStickyOperation
- Inheritance
-
object
StickyOperation
- Implements
-
Constructors
StickyOperation()
Fields
Service
[NonSerialized]
[IgnoreMember]
[JsonIgnore]
protected IFireflyService Service
Field Value
- IFireflyService
Properties
ChildOperations
public IReadOnlyDictionary<OperationId, StickyOperation> ChildOperations { get; }
Property Value
- IReadOnlyDictionary<OperationId, StickyOperation>
Expires
public DateTime? Expires { get; set; }
Property Value
- DateTime?
Id
public OperationId Id { get; }
Property Value
- OperationId
OperationCompleted
public bool OperationCompleted { get; }
Property Value
- bool
OperationEnding
public bool OperationEnding { get; set; }
Property Value
- bool
ParentOperationId
public OperationId ParentOperationId { get; }
Property Value
- OperationId
Services
[IgnoreMember]
[JsonIgnore]
public IServiceProvider Services { get; }
Property Value
- IServiceProvider
TimeToLive
public TimeSpan? TimeToLive { get; set; }
Property Value
- TimeSpan?
logger
[IgnoreMember]
[JsonIgnore]
protected ILogger logger { get; }
Property Value
- ILogger
Methods
EndAsync()
Returns
- Task
EndAsync(object?)
public Task EndAsync(object? request)
Parameters
request
object
Returns
- Task
OnEnd(object)
protected virtual Task OnEnd(object request)
Parameters
request
object
Returns
- Task
OnLoadStateAsync(Stream)
protected virtual Task OnLoadStateAsync(Stream stream)
Parameters
stream
Stream
Returns
- Task
OnSaveStateAsync(Stream)
protected virtual Task OnSaveStateAsync(Stream stream)
Parameters
stream
Stream
Returns
- Task
OnStart(object)
protected virtual Task<bool> OnStart(object request)
Parameters
request
object
Returns
- Task<bool>
OnTimeout()
protected virtual Task OnTimeout()
Returns
- Task
SaveStateAsync()
public Task SaveStateAsync()
Returns
- Task
StartOperation<Top>(object)
public virtual Task<StickyOperation> StartOperation<Top>(object Request) where Top : StickyOperation
Parameters
Request
object
Returns
- Task<StickyOperation>
Type Parameters
Top