forked from microsoft/BotBuilder-Samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSurveyService.cs
25 lines (22 loc) · 863 Bytes
/
SurveyService.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
namespace CreateNewConversationBot
{
using System;
using System.Threading.Tasks;
using Microsoft.Bot.Builder.Internals.Fibers;
using Microsoft.Bot.Connector;
[Serializable]
public class SurveyService : ISurveyService
{
private readonly ISurveyScheduler surveyScheduler;
private readonly ConversationReference conversationReference;
public SurveyService(ISurveyScheduler surveyScheduler, ConversationReference conversationReference)
{
SetField.NotNull(out this.surveyScheduler, nameof(surveyScheduler), surveyScheduler);
SetField.NotNull(out this.conversationReference, nameof(conversationReference), conversationReference);
}
public async Task QueueSurveyAsync()
{
this.surveyScheduler.Add(this.conversationReference);
}
}
}