Show / Hide Table of Contents

Class DocumentHttpServiceBase

Базовый класс сервисов по работе с документами.

Inheritance
System.Object
DocumentHttpServiceBase
DocumentHttpService
DocumentHttpService<TDocument>
Namespace:InfinniPlatform.DocumentStorage
Assembly:InfinniPlatform.DocumentStorage.HttpService.dll
Syntax
public abstract class DocumentHttpServiceBase : object, IHttpService

Constructors

| Improve this Doc View Source

DocumentHttpServiceBase(IPerformanceLogger, ILogger)

Declaration
protected DocumentHttpServiceBase(IPerformanceLogger perfLogger, ILogger logger)
Parameters
Type Name Description
IPerformanceLogger perfLogger
ILogger logger

Properties

| Improve this Doc View Source

CanDelete

Разрешено ли удаление документов.

Declaration
public bool CanDelete { get; protected set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

CanGet

Разрешено ли получение документов.

Declaration
public bool CanGet { get; protected set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

CanPost

Разрешено ли сохранение документов.

Declaration
public bool CanPost { get; protected set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

DocumentType

Имя типа документа.

Declaration
public string DocumentType { get; protected set; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

Delete(IHttpRequest)

Обрабатывает запрос на удаление документа.

Declaration
protected abstract Task<object> Delete(IHttpRequest request)
Parameters
Type Name Description
IHttpRequest request
Returns
Type Description
Task<System.Object>
| Improve this Doc View Source

Get(IHttpRequest)

Обрабатывает запрос на получение документов.

Declaration
protected abstract Task<object> Get(IHttpRequest request)
Parameters
Type Name Description
IHttpRequest request
Returns
Type Description
Task<System.Object>
| Improve this Doc View Source

Load(IHttpServiceBuilder)

Загружает настройки сервиса по работе с документами.

Declaration
protected abstract void Load(IHttpServiceBuilder builder)
Parameters
Type Name Description
IHttpServiceBuilder builder
| Improve this Doc View Source

Post(IHttpRequest)

Обрабатывает запрос на сохранение документа.

Declaration
protected abstract Task<object> Post(IHttpRequest request)
Parameters
Type Name Description
IHttpRequest request
Returns
Type Description
Task<System.Object>
| Improve this Doc View Source

ProcessRequestAsync<TQuery, TResult>(IHttpRequest, Func<IHttpRequest, TQuery>, Func<TQuery, Task<TResult>>, Func<TQuery, Task<TResult>>, Func<TQuery, TResult, Exception, Task>, Func<Exception, String>)

Обрабатывает запрос с использованием указанных правил.

Declaration
protected Task<object> ProcessRequestAsync<TQuery, TResult>(IHttpRequest request, Func<IHttpRequest, TQuery> queryFunc, Func<TQuery, Task<TResult>> handlerFunc, Func<TQuery, Task<TResult>> onBefore, Func<TQuery, TResult, Exception, Task> onAfter, Func<Exception, string> onError)where TResult : DocumentQueryResult
Parameters
Type Name Description
IHttpRequest request
Func<IHttpRequest, TQuery> queryFunc
Func<TQuery, Task<TResult>> handlerFunc
Func<TQuery, Task<TResult>> onBefore
Func<TQuery, TResult, Exception, Task> onAfter
Func<Exception, System.String> onError
Returns
Type Description
Task<System.Object>
Type Parameters
Name Description
TQuery
TResult

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.