backblaze
backblaze copied to clipboard
Fix exception when using default logger value for BackblazeClient constructors
The BackblazeClient class has a few constructor overloads that take a bunch of parameters explicitly, including an ILoggerFactory. The default value for these is null. This was causing an exception deeper down because the base class Storage assumes it always has a valid ILoggerFactory. This PR fixes the issue by making Storage substitute NullLoggerFactory.Instance when it receives null.
Added regression tests. :-)