-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #220 from EasilyNET/dev
🐛 修复一些情况下会导致异常的问题
- Loading branch information
Showing
8 changed files
with
178 additions
and
81 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
using MongoDB.Driver.Core.Events; | ||
|
||
namespace EasilyNET.Mongo.ConsoleDebug; | ||
namespace EasilyNET.Mongo.ConsoleDebug; | ||
|
||
/// <summary> | ||
/// 选项 | ||
/// </summary> | ||
public sealed class InstrumentationOptions | ||
{ | ||
/// <summary> | ||
/// 是否开启Activity | ||
/// 是否启用, 默认值: <see langword="true" /> | ||
/// </summary> | ||
public bool Enable { get; set; } = true; | ||
|
||
/// <summary> | ||
/// 过滤哪些集合需要开启信息输出 | ||
/// </summary> | ||
// ReSharper disable once UnusedAutoPropertyAccessor.Global | ||
public Func<CommandStartedEvent, bool>? ShouldStartActivity { get; set; } | ||
public Func<string, bool>? ShouldStartCollection { get; set; } | ||
} |
Oops, something went wrong.