Show / Hide Table of Contents

Class TaskConsumerBase<T>

Базовый потребитель сообщений очереди задач.

Inheritance
System.Object
TaskConsumerBase<T>
Namespace:InfinniPlatform.MessageQueue
Assembly:InfinniPlatform.MessageQueue.Abstractions.dll
Syntax
public abstract class TaskConsumerBase<T> : object, ITaskConsumer, IConsumer
Type Parameters
Name Description
T

Тип тела сообщения.

Properties

| Improve this Doc View Source

MessageType

Declaration
public Type MessageType { get; }
Property Value
Type Description
Type
Implements
IConsumer.MessageType

Methods

| Improve this Doc View Source

Consume(Message<T>)

Declaration
protected abstract Task Consume(Message<T> message)
Parameters
Type Name Description
Message<T> message
Returns
Type Description
Task
| Improve this Doc View Source

OnError(Exception)

Declaration
protected virtual Task<bool> OnError(Exception exception)
Parameters
Type Name Description
Exception exception
Returns
Type Description
Task<System.Boolean>

Explicit Interface Implementations

| Improve this Doc View Source

IConsumer.Consume(IMessage)

Declaration
Task IConsumer.Consume(IMessage message)
Parameters
Type Name Description
IMessage message
Returns
Type Description
Task
Implements
IConsumer.Consume(IMessage)
| Improve this Doc View Source

IConsumer.OnError(Exception)

Declaration
Task<bool> IConsumer.OnError(Exception exception)
Parameters
Type Name Description
Exception exception
Returns
Type Description
Task<System.Boolean>
Implements
IConsumer.OnError(Exception)

Extension Methods

DynamicCollectionExtensions.GetItem(Object, Int32)
DynamicCollectionExtensions.SetItem(Object, Int32, Object)
DynamicCollectionExtensions.AddItem(Object, Object)
DynamicCollectionExtensions.InsertItem(Object, Int32, Object)
DynamicCollectionExtensions.RemoveItem(Object, Object)
DynamicCollectionExtensions.RemoveItemAt(Object, Int32)
DynamicCollectionExtensions.MoveItem(Object, Object, Int32)
DynamicObjectExtensions.TryGetPropertyValue(Object, String)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TryGetPropertyValueByPath(Object, String)
DynamicObjectExtensions.TrySetPropertyValueByPath(Object, String, Object)
ReflectionExtensions.IsInstanceOfType(Object, Type)
ReflectionExtensions.GetMemberValue(Object, String)
ReflectionExtensions.SetMemberValue(Object, String, Object)
ReflectionExtensions.InvokeMember(Object, String, Object[], out Object, Type[])
ReflectionExtensions.GetFieldValue(Object, FieldInfo)
ReflectionExtensions.SetFieldValue(Object, FieldInfo, Object)
ReflectionExtensions.GetPropertyValue(Object, PropertyInfo)
ReflectionExtensions.SetPropertyValue(Object, PropertyInfo, Object)
ReflectionExtensions.GetMethodDelegate(Object, MethodInfo)
ReflectionExtensions.GetEventDelegate(Object, EventInfo)
ReflectionExtensions.SetEventDelegate(Object, EventInfo, Object)
CommonExtensions.ExecuteSilent<T>(T, Action<T>)
  • Improve this Doc
  • View Source
Back to top © Copyright Infinnity Solutions Ltd, 2010–2017.