Releases: soxtoby/SlackNet
v0.10.4
v0.10.3
v0.10.2
- Added AppUninstalled event content
Thankyou to @Kalissaac for this release π
v0.10.1
v0.10.0
- Added logging.
- Added
SlackRequestContext.Current
to provide static access to the current request context.Current
throws if not in a request context, so depending on where you use it, you'll want to checkIsAvailable
first. - Added
RequestId
toSlackRequestContext
, which provides a unique ID for the current request. - Added
RequestId
toRawSocketMessage
andSocketMessage
. - Fixes and extra properties for the
OpenIdApi.Token
API.
Logging
The default logger doesn't do anything, so if you want logging, you'll need to implement the ILogger
interface and provide it with one of the UseLogger
configuration methods. If you're using SlackNet.AspNetCore
, the default logger is overridden with an adaptor for the Microsoft.Extensions.Logging
logger, which itself can be overridden as necessary.
Implementing ILogger
should be fairly straightforward - see the MicrosoftLoggerAdaptor for an example. I've provided a range of ILogEvent
extension methods to adapt log events to a variety of formats. All log events have a Category
property, and should have a "Source"
message property, which can be used for filtering and determining the appropriate verbosity.
Breaking Changes
SlackNet.AspNetCore
now depends on theMicrosoft.Extensions.Logging.Abstractions
package.SlackRtmClient
requires anILogger
when constructed with specific services.CoreSocketModeClient
requires anILogger
when constructed with specific services.SlackSocketModeClient
requires anILogger
when constructed.
Thankyou to @objmj-itminds for the Open ID improvements β¨
v0.9.5
v0.9.4
v0.9.3
v0.9.2
- Added optional
includeLocale
parameter toInfo
andList
inUsersApi
, and toStart
inRtmApi
. SlashCommandResponse
s returned byISlashCommandHandler
s are properly passed on to Slack.
Potentially breaking changes
While the includeLocale
parameters are optional, they haven't been added as the last parameter, so on the off chance you were using all of the optional parameters in one of the modified methods, without specifying parameter names, then you'll need to add some parameter names.
Thankyou to @Selm for helping with this release π