This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Microsoft.CodeAnalysis; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Text; | |
| using Microsoft.CodeAnalysis.CSharp; | |
| using Microsoft.CodeAnalysis.CSharp.Syntax; | |
| using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| internal class MongoTracking | |
| { | |
| private readonly Action<CommandStartedEvent> onCommandStartEvent; | |
| private readonly Action<CommandSucceededEvent> onCommandSucceededEvent; | |
| private readonly Action<CommandFailedEvent> onCommandFailedEvent; | |
| private IEnumerable<string> NotTrackedCommands { get; } = new[] | |
| {"isMaster", "buildInfo", "getLastError", "saslStart", "saslContinue"}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using MongoDB.Bson; | |
| using MongoDB.Bson.Serialization.Attributes; | |
| using MongoDB.Driver; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.ComponentModel.DataAnnotations.Schema; | |
| using System.Diagnostics; | |
| using System.Linq; | |
| namespace Looking |