Show / Hide Table of Contents

Class DocumentHttpServiceHandler

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

Inheritance
System.Object
DocumentHttpServiceHandler
Namespace:InfinniPlatform.DocumentStorage
Assembly:InfinniPlatform.DocumentStorage.HttpService.dll
Syntax
public class DocumentHttpServiceHandler : object, IDocumentHttpServiceHandler, IDocumentHttpServiceHandlerBase

Constructors

| Improve this Doc View Source

DocumentHttpServiceHandler(String)

Declaration
public DocumentHttpServiceHandler(string documentType)
Parameters
Type Name Description
System.String documentType

Properties

| Improve this Doc View Source

AsSystem

Работать с системными документами.

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

CanDelete

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

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

CanGet

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

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

CanPost

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

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

DocumentType

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

Declaration
public string DocumentType { get; }
Property Value
Type Description
System.String
Implements
IDocumentHttpServiceHandlerBase.DocumentType

Methods

| Improve this Doc View Source

Load(IHttpServiceBuilder)

Загружает модуль.

Declaration
public virtual void Load(IHttpServiceBuilder builder)
Parameters
Type Name Description
IHttpServiceBuilder builder

Регистратор обработчиков запросов.

Implements
IDocumentHttpServiceHandlerBase.Load(IHttpServiceBuilder)
| Improve this Doc View Source

OnAfterDelete(DocumentDeleteQuery, DocumentDeleteQueryResult, Exception)

Вызывается после удаления документов.

Declaration
public virtual Task OnAfterDelete(DocumentDeleteQuery query, DocumentDeleteQueryResult result, Exception exception)
Parameters
Type Name Description
DocumentDeleteQuery query

Запрос на удаление документа.

DocumentDeleteQueryResult result

Результат обработки запроса.

Exception exception

Исключение обработки запроса.

Returns
Type Description
Task
Implements
IDocumentHttpServiceHandler.OnAfterDelete(DocumentDeleteQuery, DocumentDeleteQueryResult, Exception)
| Improve this Doc View Source

OnAfterGet(DocumentGetQuery, DocumentGetQueryResult, Exception)

Вызывается после получения документов.

Declaration
public virtual Task OnAfterGet(DocumentGetQuery query, DocumentGetQueryResult result, Exception exception)
Parameters
Type Name Description
DocumentGetQuery query

Запрос на получение документов.

DocumentGetQueryResult result

Результат обработки запроса.

Exception exception

Исключение обработки запроса.

Returns
Type Description
Task
Implements
IDocumentHttpServiceHandler.OnAfterGet(DocumentGetQuery, DocumentGetQueryResult, Exception)
| Improve this Doc View Source

OnAfterPost(DocumentPostQuery, DocumentPostQueryResult, Exception)

Вызывается после сохранения документов.

Declaration
public virtual Task OnAfterPost(DocumentPostQuery query, DocumentPostQueryResult result, Exception exception)
Parameters
Type Name Description
DocumentPostQuery query

Запрос на сохранение документа.

DocumentPostQueryResult result

Результат обработки запроса.

Exception exception

Исключение обработки запроса.

Returns
Type Description
Task
Implements
IDocumentHttpServiceHandler.OnAfterPost(DocumentPostQuery, DocumentPostQueryResult, Exception)
| Improve this Doc View Source

OnBeforeDelete(DocumentDeleteQuery)

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

Declaration
public virtual Task<DocumentDeleteQueryResult> OnBeforeDelete(DocumentDeleteQuery query)
Parameters
Type Name Description
DocumentDeleteQuery query
Returns
Type Description
Task<DocumentDeleteQueryResult>

Результат обработки запроса или null, если запрос не был обработан.

Implements
IDocumentHttpServiceHandler.OnBeforeDelete(DocumentDeleteQuery)
| Improve this Doc View Source

OnBeforeGet(DocumentGetQuery)

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

Declaration
public virtual Task<DocumentGetQueryResult> OnBeforeGet(DocumentGetQuery query)
Parameters
Type Name Description
DocumentGetQuery query

Запрос на получение документов.

Returns
Type Description
Task<DocumentGetQueryResult>

Результат обработки запроса или null, если запрос не был обработан.

Implements
IDocumentHttpServiceHandler.OnBeforeGet(DocumentGetQuery)
| Improve this Doc View Source

OnBeforePost(DocumentPostQuery)

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

Declaration
public virtual Task<DocumentPostQueryResult> OnBeforePost(DocumentPostQuery query)
Parameters
Type Name Description
DocumentPostQuery query

Запрос на сохранение документа.

Returns
Type Description
Task<DocumentPostQueryResult>

Результат обработки запроса или null, если запрос не был обработан.

Implements
IDocumentHttpServiceHandler.OnBeforePost(DocumentPostQuery)
| Improve this Doc View Source

OnError(Exception)

Обрабатывает исключение.

Declaration
public string OnError(Exception exception)
Parameters
Type Name Description
Exception exception

Исключение.

Returns
Type Description
System.String

Сообщение об ошибке.

Implements
IDocumentHttpServiceHandlerBase.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.