dolittle-obsolete / DotNET.Fundamentals

Reusable, fundamental abstractions and building blocks
http://www.dolittle.io
MIT License
4 stars 8 forks source link

Add Logging scope #323

Closed woksin closed 4 years ago

woksin commented 4 years ago

I think that it may be useful for us to have the ability to log in scopes Microsoft Logger logging scope.

I used Disposable.Empty and CompositeDisposable from the System.Reactive package. These seems to only be something that is not strictly for ReactiveX, but actually something that should be added to System.Disposable... The alternative was to create something for ourselves, as Disposable.Empty and CompositeDisposable is really easy to implement, but lets not recreate the wheel... It's fine if we don't want to use it (and I'm also maybe leaning a bit towards creating our own implementations)