Show / Hide Table of Contents

Interface IDocumentStorageInterceptor<TDocument>

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

Inherited Members
IDocumentStorageInterceptor.DocumentType
IDocumentStorageInterceptor.OnBeforeInsertOne(DocumentInsertOneCommand)
IDocumentStorageInterceptor.OnAfterInsertOne(DocumentInsertOneCommand, DocumentStorageWriteResult<Object>, Exception)
IDocumentStorageInterceptor.OnBeforeInsertMany(DocumentInsertManyCommand)
IDocumentStorageInterceptor.OnAfterInsertMany(DocumentInsertManyCommand, DocumentStorageWriteResult<Object>, Exception)
IDocumentStorageInterceptor.OnBeforeUpdateOne(DocumentUpdateOneCommand)
IDocumentStorageInterceptor.OnAfterUpdateOne(DocumentUpdateOneCommand, DocumentStorageWriteResult<DocumentUpdateResult>, Exception)
IDocumentStorageInterceptor.OnBeforeUpdateMany(DocumentUpdateManyCommand)
IDocumentStorageInterceptor.OnAfterUpdateMany(DocumentUpdateManyCommand, DocumentStorageWriteResult<DocumentUpdateResult>, Exception)
IDocumentStorageInterceptor.OnBeforeReplaceOne(DocumentReplaceOneCommand)
IDocumentStorageInterceptor.OnAfterReplaceOne(DocumentReplaceOneCommand, DocumentStorageWriteResult<DocumentUpdateResult>, Exception)
IDocumentStorageInterceptor.OnBeforeDeleteOne(DocumentDeleteOneCommand)
IDocumentStorageInterceptor.OnAfterDeleteOne(DocumentDeleteOneCommand, DocumentStorageWriteResult<Int64>, Exception)
IDocumentStorageInterceptor.OnBeforeDeleteMany(DocumentDeleteManyCommand)
IDocumentStorageInterceptor.OnAfterDeleteMany(DocumentDeleteManyCommand, DocumentStorageWriteResult<Int64>, Exception)
IDocumentStorageInterceptor.OnBeforeBulk(DocumentBulkCommand)
IDocumentStorageInterceptor.OnAfterBulk(DocumentBulkCommand, DocumentStorageWriteResult<DocumentBulkResult>, Exception)
Namespace:InfinniPlatform.DocumentStorage.Interceptors
Assembly:InfinniPlatform.DocumentStorage.Abstractions.dll
Syntax
public interface IDocumentStorageInterceptor<TDocument> : IDocumentStorageInterceptor
Type Parameters
Name Description
TDocument

Methods

| Improve this Doc View Source

OnAfterBulk(DocumentBulkCommand<TDocument>, DocumentStorageWriteResult<DocumentBulkResult>, Exception)

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

Declaration
void OnAfterBulk(DocumentBulkCommand<TDocument> command, DocumentStorageWriteResult<DocumentBulkResult> result, Exception exception)
Parameters
Type Name Description
DocumentBulkCommand<TDocument> command

Набор команд изменения документов.

DocumentStorageWriteResult<DocumentBulkResult> result

Результат выполнения набора команд изменения документов.

Exception exception

Исключение, возникшее при выполнении команды.

| Improve this Doc View Source

OnAfterDeleteMany(DocumentDeleteManyCommand<TDocument>, DocumentStorageWriteResult<Int64>, Exception)

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

Declaration
void OnAfterDeleteMany(DocumentDeleteManyCommand<TDocument> command, DocumentStorageWriteResult<long> result, Exception exception)
Parameters
Type Name Description
DocumentDeleteManyCommand<TDocument> command

Команда удаления набора документов.

DocumentStorageWriteResult<System.Int64> result

Результат выполнения команды удаления набора документов.

Exception exception

Исключение, возникшее при выполнении команды.

| Improve this Doc View Source

OnAfterDeleteOne(DocumentDeleteOneCommand<TDocument>, DocumentStorageWriteResult<Int64>, Exception)

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

Declaration
void OnAfterDeleteOne(DocumentDeleteOneCommand<TDocument> command, DocumentStorageWriteResult<long> result, Exception exception)
Parameters
Type Name Description
DocumentDeleteOneCommand<TDocument> command

Команда удаления одного документа.

DocumentStorageWriteResult<System.Int64> result

Результат выполнения команды удаления одного документа.

Exception exception

Исключение, возникшее при выполнении команды.

| Improve this Doc View Source

OnAfterInsertMany(DocumentInsertManyCommand<TDocument>, DocumentStorageWriteResult<Object>, Exception)

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

Declaration
void OnAfterInsertMany(DocumentInsertManyCommand<TDocument> command, DocumentStorageWriteResult<object> result, Exception exception)
Parameters
Type Name Description
DocumentInsertManyCommand<TDocument> command

Команда вставки набора документов.

DocumentStorageWriteResult<System.Object> result

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

Exception exception

Исключение, возникшее при выполнении команды.

| Improve this Doc View Source

OnAfterInsertOne(DocumentInsertOneCommand<TDocument>, DocumentStorageWriteResult<Object>, Exception)

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

Declaration
void OnAfterInsertOne(DocumentInsertOneCommand<TDocument> command, DocumentStorageWriteResult<object> result, Exception exception)
Parameters
Type Name Description
DocumentInsertOneCommand<TDocument> command

Команда вставки одного документа.

DocumentStorageWriteResult<System.Object> result

Результат вставки одного документа.

Exception exception

Исключение, возникшее при выполнении команды.

| Improve this Doc View Source

OnAfterReplaceOne(DocumentReplaceOneCommand<TDocument>, DocumentStorageWriteResult<DocumentUpdateResult>, Exception)

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

Declaration
void OnAfterReplaceOne(DocumentReplaceOneCommand<TDocument> command, DocumentStorageWriteResult<DocumentUpdateResult> result, Exception exception)
Parameters
Type Name Description
DocumentReplaceOneCommand<TDocument> command

Команда замены одного документа.

DocumentStorageWriteResult<DocumentUpdateResult> result

Результат выполнения команды замены одного документа.

Exception exception

Исключение, возникшее при выполнении команды.

| Improve this Doc View Source

OnAfterUpdateMany(DocumentUpdateManyCommand<TDocument>, DocumentStorageWriteResult<DocumentUpdateResult>, Exception)

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

Declaration
void OnAfterUpdateMany(DocumentUpdateManyCommand<TDocument> command, DocumentStorageWriteResult<DocumentUpdateResult> result, Exception exception)
Parameters
Type Name Description
DocumentUpdateManyCommand<TDocument> command

Команда обновления набора документов.

DocumentStorageWriteResult<DocumentUpdateResult> result

Результат выполнения команды обновления набора документов.

Exception exception

Исключение, возникшее при выполнении команды.

| Improve this Doc View Source

OnAfterUpdateOne(DocumentUpdateOneCommand<TDocument>, DocumentStorageWriteResult<DocumentUpdateResult>, Exception)

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

Declaration
void OnAfterUpdateOne(DocumentUpdateOneCommand<TDocument> command, DocumentStorageWriteResult<DocumentUpdateResult> result, Exception exception)
Parameters
Type Name Description
DocumentUpdateOneCommand<TDocument> command

Команда обновления одного документа.

DocumentStorageWriteResult<DocumentUpdateResult> result

Результат выполнения команды обновления документа.

Exception exception

Исключение, возникшее при выполнении команды.

| Improve this Doc View Source

OnBeforeBulk(DocumentBulkCommand<TDocument>)

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

Declaration
DocumentStorageWriteResult<DocumentBulkResult> OnBeforeBulk(DocumentBulkCommand<TDocument> command)
Parameters
Type Name Description
DocumentBulkCommand<TDocument> command

Набор команд изменения документов.

Returns
Type Description
DocumentStorageWriteResult<DocumentBulkResult>

Результат выполнения набора команд изменения документов.

| Improve this Doc View Source

OnBeforeDeleteMany(DocumentDeleteManyCommand<TDocument>)

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

Declaration
DocumentStorageWriteResult<long> OnBeforeDeleteMany(DocumentDeleteManyCommand<TDocument> command)
Parameters
Type Name Description
DocumentDeleteManyCommand<TDocument> command

Команда удаления набора документов.

Returns
Type Description
DocumentStorageWriteResult<System.Int64>

Результат выполнения команды удаления набора документов.

| Improve this Doc View Source

OnBeforeDeleteOne(DocumentDeleteOneCommand<TDocument>)

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

Declaration
DocumentStorageWriteResult<long> OnBeforeDeleteOne(DocumentDeleteOneCommand<TDocument> command)
Parameters
Type Name Description
DocumentDeleteOneCommand<TDocument> command

Команда удаления одного документа.

Returns
Type Description
DocumentStorageWriteResult<System.Int64>

Результат выполнения команды удаления одного документа.

| Improve this Doc View Source

OnBeforeInsertMany(DocumentInsertManyCommand<TDocument>)

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

Declaration
DocumentStorageWriteResult<object> OnBeforeInsertMany(DocumentInsertManyCommand<TDocument> command)
Parameters
Type Name Description
DocumentInsertManyCommand<TDocument> command

Команда вставки набора документов.

Returns
Type Description
DocumentStorageWriteResult<System.Object>

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

| Improve this Doc View Source

OnBeforeInsertOne(DocumentInsertOneCommand<TDocument>)

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

Declaration
DocumentStorageWriteResult<object> OnBeforeInsertOne(DocumentInsertOneCommand<TDocument> command)
Parameters
Type Name Description
DocumentInsertOneCommand<TDocument> command

Команда вставки одного документа.

Returns
Type Description
DocumentStorageWriteResult<System.Object>

Результат вставки одного документа.

| Improve this Doc View Source

OnBeforeReplaceOne(DocumentReplaceOneCommand<TDocument>)

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

Declaration
DocumentStorageWriteResult<DocumentUpdateResult> OnBeforeReplaceOne(DocumentReplaceOneCommand<TDocument> command)
Parameters
Type Name Description
DocumentReplaceOneCommand<TDocument> command

Команда замены одного документа.

Returns
Type Description
DocumentStorageWriteResult<DocumentUpdateResult>

Результат выполнения команды замены одного документа.

| Improve this Doc View Source

OnBeforeUpdateMany(DocumentUpdateManyCommand<TDocument>)

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

Declaration
DocumentStorageWriteResult<DocumentUpdateResult> OnBeforeUpdateMany(DocumentUpdateManyCommand<TDocument> command)
Parameters
Type Name Description
DocumentUpdateManyCommand<TDocument> command

Команда обновления набора документов.

Returns
Type Description
DocumentStorageWriteResult<DocumentUpdateResult>

Результат выполнения команды обновления набора документов.

| Improve this Doc View Source

OnBeforeUpdateOne(DocumentUpdateOneCommand<TDocument>)

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

Declaration
DocumentStorageWriteResult<DocumentUpdateResult> OnBeforeUpdateOne(DocumentUpdateOneCommand<TDocument> command)
Parameters
Type Name Description
DocumentUpdateOneCommand<TDocument> command

Команда обновления одного документа.

Returns
Type Description
DocumentStorageWriteResult<DocumentUpdateResult>

Результат выполнения команды обновления документа.

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.