Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NotificationService"/> class.
 /// </summary>
 /// <param name="expertAppCredentials">Instance of class having expert bot credentials.</param>
 /// <param name="userAppCredentials">Instance of class having user bot credentials.</param>
 public NotificationService(
     ExpertAppCredentials expertAppCredentials,
     UserAppCredentials userAppCredentials)
 {
     this.expertAppCredentials = expertAppCredentials ?? throw new ArgumentNullException(nameof(expertAppCredentials));
     this.userAppCredentials   = userAppCredentials ?? throw new ArgumentNullException(nameof(userAppCredentials));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ConversationService"/> class.
 /// </summary>
 /// <param name="botAdapter">The bot adapter.</param>
 /// <param name="userAppCredentials">The user Microsoft app credentials.</param>
 /// <param name="authorAppCredentials">The author Microsoft app credentials.</param>
 public ConversationService(
     ICCBotFrameworkHttpAdapter botAdapter,
     UserAppCredentials userAppCredentials,
     AuthorAppCredentials authorAppCredentials)
 {
     this.botAdapter           = botAdapter ?? throw new ArgumentNullException(nameof(botAdapter));
     this.userAppCredentials   = userAppCredentials ?? throw new ArgumentNullException(nameof(userAppCredentials));
     this.authorAppCredentials = authorAppCredentials ?? throw new ArgumentNullException(nameof(authorAppCredentials));
 }