CosmosQueryEventData Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CosmosQueryEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, String, Nullable<PartitionKey>, IReadOnlyList<ValueTuple<String, Object>>, String, Boolean)
- Source:
- CosmosQueryEventData.cs
Constructs the event payload.
public CosmosQueryEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, string containerId, Microsoft.Azure.Cosmos.PartitionKey? partitionKeyValue, System.Collections.Generic.IReadOnlyList<(string Name, object? Value)> parameters, string querySql, bool logSensitiveData);
new Microsoft.EntityFrameworkCore.Diagnostics.CosmosQueryEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * string * Nullable<Microsoft.Azure.Cosmos.PartitionKey> * System.Collections.Generic.IReadOnlyList<ValueTuple<string, obj>> * string * bool -> Microsoft.EntityFrameworkCore.Diagnostics.CosmosQueryEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), containerId As String, partitionKeyValue As Nullable(Of PartitionKey), parameters As IReadOnlyList(Of ValueTuple(Of String, Object)), querySql As String, logSensitiveData As Boolean)
Parameters
- eventDefinition
- EventDefinitionBase
The event definition.
- messageGenerator
- Func<EventDefinitionBase,EventData,String>
A delegate that generates a log message for this event.
- containerId
- String
The ID of the Cosmos container being queried.
- partitionKeyValue
- Nullable<PartitionKey>
The key value of the Cosmos partition that the query is using.
- parameters
- IReadOnlyList<ValueTuple<String,Object>>
Name/values for each parameter in the Cosmos Query.
- querySql
- String
The SQL representing the query.
- logSensitiveData
- Boolean
Indicates whether the application allows logging of sensitive data.
Applies to
CosmosQueryEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, String, String, IReadOnlyList<ValueTuple<String, Object>>, String, Boolean)
- Source:
- CosmosQueryEventData.cs
- Source:
- CosmosQueryEventData.cs
- Source:
- CosmosQueryEventData.cs
Constructs the event payload.
public CosmosQueryEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, string containerId, string? partitionKey, System.Collections.Generic.IReadOnlyList<(string Name, object? Value)> parameters, string querySql, bool logSensitiveData);
new Microsoft.EntityFrameworkCore.Diagnostics.CosmosQueryEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * string * string * System.Collections.Generic.IReadOnlyList<ValueTuple<string, obj>> * string * bool -> Microsoft.EntityFrameworkCore.Diagnostics.CosmosQueryEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), containerId As String, partitionKey As String, parameters As IReadOnlyList(Of ValueTuple(Of String, Object)), querySql As String, logSensitiveData As Boolean)
Parameters
- eventDefinition
- EventDefinitionBase
The event definition.
- messageGenerator
- Func<EventDefinitionBase,EventData,String>
A delegate that generates a log message for this event.
- containerId
- String
The ID of the Cosmos container being queried.
- partitionKey
- String
The key of the Cosmos partition that the query is using.
- parameters
- IReadOnlyList<ValueTuple<String,Object>>
Name/values for each parameter in the Cosmos Query.
- querySql
- String
The SQL representing the query.
- logSensitiveData
- Boolean
Indicates whether the application allows logging of sensitive data.