Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

SurveyService.cs 863 B

You have to be logged in to leave a comment. Sign In
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
  1. namespace CreateNewConversationBot
  2. {
  3. using System;
  4. using System.Threading.Tasks;
  5. using Microsoft.Bot.Builder.Internals.Fibers;
  6. using Microsoft.Bot.Connector;
  7. [Serializable]
  8. public class SurveyService : ISurveyService
  9. {
  10. private readonly ISurveyScheduler surveyScheduler;
  11. private readonly ConversationReference conversationReference;
  12. public SurveyService(ISurveyScheduler surveyScheduler, ConversationReference conversationReference)
  13. {
  14. SetField.NotNull(out this.surveyScheduler, nameof(surveyScheduler), surveyScheduler);
  15. SetField.NotNull(out this.conversationReference, nameof(conversationReference), conversationReference);
  16. }
  17. public async Task QueueSurveyAsync()
  18. {
  19. this.surveyScheduler.Add(this.conversationReference);
  20. }
  21. }
  22. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...