BizDoc.Core.Slack 6.5.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package BizDoc.Core.Slack --version 6.5.4
                    
NuGet\Install-Package BizDoc.Core.Slack -Version 6.5.4
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BizDoc.Core.Slack" Version="6.5.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BizDoc.Core.Slack" Version="6.5.4" />
                    
Directory.Packages.props
<PackageReference Include="BizDoc.Core.Slack" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BizDoc.Core.Slack --version 6.5.4
                    
#r "nuget: BizDoc.Core.Slack, 6.5.4"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package BizDoc.Core.Slack@6.5.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BizDoc.Core.Slack&version=6.5.4
                    
Install as a Cake Addin
#tool nuget:?package=BizDoc.Core.Slack&version=6.5.4
                    
Install as a Cake Tool

Slack for BizDoc

BizDoc pushes messages and notifications into Slack.

To ulilize Slack messaging, add in program.cs.

builder.Services.AddBizDoc().AddSlack(o => {
	o.Token = "{token-here}";
	o.ChannelId = "{channel-id-here}";
});


app.UseBizDoc().UseSlack();

Form details

Implement the OnDeliverMessage option in AddSlack() to contribute message.

Use the IDocumentContext to access form model using the GetModel() method.

using BizDoc.Slack.Models;

builder.Services.AddBizDoc().AddSlack(o => {
	...
	o.OnDeliverMessage = e => {
		var model = e.Context.GetModel<MyModel>();
	
		var section = new Section("form_section");
		section.Fields.Add(new Text(model.Title));
		
		e.Request.Blocks.Add(section);
	}
});

Block can be one of Header, Section, Image, Input or Actions, which corresponds to Block Kit. Elemtn can be one of InputElement, DatePicker, Checkboxes, RadioButtons, Select, MultiSelect, ImageElement or Button. Use Text or Markdown to represent texts.

Commonly use Section block, possibly setting an Accessory element.

Responding to events

builder.Services.AddBizDoc().AddSlack(o ⇒ { ... o.OnMessageReceived = e ⇒ { e.Response.Actions.FirstOrDefault(a ⇒ a.Id == "action-id"); } });

Enable Socket Mode in app config.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
6.8.2 1,013 10/18/2022 6.8.2 is deprecated because it is no longer maintained.
6.7.0 874 7/10/2022
6.6.2 842 6/15/2022
6.6.1 895 6/9/2022
6.6.0 851 5/31/2022
6.5.12 864 5/20/2022
6.5.11 906 5/16/2022
6.5.9 873 5/15/2022
6.5.8 840 5/11/2022
6.5.7 849 5/11/2022
6.5.6 905 5/10/2022
6.5.5 870 5/10/2022
6.5.4 866 5/10/2022
6.5.3 860 5/9/2022
6.5.2 870 5/9/2022
6.5.1 859 4/6/2022
6.3.5 885 2/7/2022
6.3.3 883 1/30/2022
6.3.2 921 1/27/2022
6.3.1 912 1/24/2022
6.2.0 883 1/11/2022
6.0.1 749 12/20/2021
6.0.0 751 11/10/2021
5.3.1 794 11/3/2021
5.3.0 946 10/30/2021
5.1.1 798 8/30/2021
5.1.0 805 8/23/2021