메소드 | 설명 | |
---|---|---|
AllowRead ( string key, RavenJObject metadata, ReadOperation operation, Raven.Abstractions.Data.TransactionInformation transactionInformation ) : Raven.Database.Plugins.ReadVetoResult |
Ask the trigger whatever the document should be read by the user. The document and metadata instances SHOULD NOT be modified. |
|
Initialize ( ) : void | ||
Initialize ( DocumentDatabase database ) : void | ||
OnRead ( string key, RavenJObject document, RavenJObject metadata, ReadOperation operation, Raven.Abstractions.Data.TransactionInformation transactionInformation ) : void |
Allow the trigger the option of modifying the document and metadata instances before the user can see them. The modified values are transient, and are NOT saved to the database. |
public AllowRead ( string key, RavenJObject metadata, ReadOperation operation, Raven.Abstractions.Data.TransactionInformation transactionInformation ) : Raven.Database.Plugins.ReadVetoResult | ||
key | string | The key of the read document - can be null if reading a projection |
metadata | RavenJObject | The document metadata |
operation | ReadOperation | Whatever the operation is a load or a query |
transactionInformation | Raven.Abstractions.Data.TransactionInformation | The transaction information, if any |
리턴 | Raven.Database.Plugins.ReadVetoResult |
public Initialize ( DocumentDatabase database ) : void | ||
database | DocumentDatabase | |
리턴 | void |
public OnRead ( string key, RavenJObject document, RavenJObject metadata, ReadOperation operation, Raven.Abstractions.Data.TransactionInformation transactionInformation ) : void | ||
key | string | The key of the read document - can be null if reading a projection |
document | RavenJObject | The document being read |
metadata | RavenJObject | The document metadata |
operation | ReadOperation | Whatever the operation is a load or a query |
transactionInformation | Raven.Abstractions.Data.TransactionInformation | The transaction information, if any |
리턴 | void |