Show / Hide Table of Contents

Class ALambdaSlackCommandFunction

Inheritance
System.Object
ALambdaFunction
ALambdaSlackCommandFunction
Implements
ILambdaSharpLogger
Inherited Members
ALambdaFunction.Provider
ALambdaFunction.UtcNow
ALambdaFunction.Info
ALambdaFunction.ErrorReportGenerator
ALambdaFunction.Logger
ALambdaFunction.CurrentContext
ALambdaFunction.HttpClient
ALambdaFunction.DebugLoggingEnabled
ALambdaFunction.FunctionHandlerAsync(Stream, ILambdaContext)
ALambdaFunction.InitializePrologueAsync(ILambdaConfigSource)
ALambdaFunction.InitializeEpilogueAsync()
ALambdaFunction.HandleFailedInitializationAsync(Stream)
ALambdaFunction.RecordFailedMessageAsync(LambdaLogLevel, ALambdaFunction.FailedMessageOrigin, String, Exception)
ALambdaFunction.DecryptSecretAsync(String, Dictionary<String, String>, CancellationToken)
ALambdaFunction.EncryptSecretAsync(String, String, Dictionary<String, String>, CancellationToken)
ALambdaFunction.AddPendingTask(Task)
ALambdaFunction.RunTask(Action, CancellationToken)
ALambdaFunction.RunTask(Func<Task>, CancellationToken)
ALambdaFunction.ForceLambdaColdStart(String)
ALambdaFunction.TerminateLambdaInstance(String)
ALambdaFunction.RecordErrorReport(LambdaErrorReport)
ALambdaFunction.RecordException(Exception)
ALambdaFunction.LogDebug(String, Object[])
ALambdaFunction.LogInfo(String, Object[])
ALambdaFunction.LogWarn(String, Object[])
ALambdaFunction.LogError(Exception)
ALambdaFunction.LogError(Exception, String, Object[])
ALambdaFunction.LogErrorAsInfo(Exception)
ALambdaFunction.LogErrorAsInfo(Exception, String, Object[])
ALambdaFunction.LogErrorAsWarning(Exception)
ALambdaFunction.LogErrorAsWarning(Exception, String, Object[])
ALambdaFunction.LogFatal(Exception, String, Object[])
ALambdaFunction.LogMetric(String, Double, LambdaMetricUnit)
ALambdaFunction.LogMetric(String, Double, LambdaMetricUnit, IEnumerable<String>, Dictionary<String, String>)
ALambdaFunction.LogMetric(IEnumerable<LambdaMetric>)
ALambdaFunction.LogMetric(IEnumerable<LambdaMetric>, IEnumerable<String>, Dictionary<String, String>)
ALambdaFunction.LogEvent<T>(T, IEnumerable<String>)
ALambdaFunction.LogEvent<T>(String, T, IEnumerable<String>)
ALambdaFunction.LogEvent<T>(String, String, T, IEnumerable<String>)
ALambdaFunction.ILambdaSharpLogger.DebugLoggingEnabled
ALambdaFunction.ILambdaSharpLogger.Info
ALambdaFunction.ILambdaSharpLogger.Log(LambdaLogLevel, Exception, String, Object[])
ALambdaFunction.ILambdaSharpLogger.LogRecord(ALambdaLogRecord)
Namespace: LambdaSharp.Slack
Assembly: LambdaSharp.Slack.dll
Syntax
public abstract class ALambdaSlackCommandFunction : ALambdaFunction, ILambdaSharpLogger

Methods

InitializeAsync(LambdaConfig)

Declaration
public override async Task InitializeAsync(LambdaConfig config)
Parameters
Type Name Description
LambdaConfig config
Returns
Type Description
System.Threading.Tasks.Task
Overrides
ALambdaFunction.InitializeAsync(LambdaConfig)

ProcessMessageStreamAsync(Stream)

Declaration
public sealed override async Task<Stream> ProcessMessageStreamAsync(Stream stream)
Parameters
Type Name Description
System.IO.Stream stream
Returns
Type Description
System.Threading.Tasks.Task<System.IO.Stream>
Overrides
ALambdaFunction.ProcessMessageStreamAsync(Stream)

ProcessSlackRequestAsync(SlackRequest)

Declaration
protected abstract Task ProcessSlackRequestAsync(SlackRequest request)
Parameters
Type Name Description
SlackRequest request
Returns
Type Description
System.Threading.Tasks.Task

Respond(SlackRequest, SlackResponse)

Declaration
protected async Task<bool> Respond(SlackRequest request, SlackResponse response)
Parameters
Type Name Description
SlackRequest request
SlackResponse response
Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

RespondEphemeral(SlackRequest, String, SlackResponseAttachment[])

Declaration
protected Task<bool> RespondEphemeral(SlackRequest request, string text, params SlackResponseAttachment[] attachments)
Parameters
Type Name Description
SlackRequest request
System.String text
SlackResponseAttachment[] attachments
Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

RespondInChannel(SlackRequest, String, SlackResponseAttachment[])

Declaration
protected Task<bool> RespondInChannel(SlackRequest request, string text, params SlackResponseAttachment[] attachments)
Parameters
Type Name Description
SlackRequest request
System.String text
SlackResponseAttachment[] attachments
Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

Implements

ILambdaSharpLogger
In This Article
Back to top Generated by DocFX