/// <summary> /// Initializes a new instance of the <see cref="ApprovalEventStrategy"/> class. /// </summary> /// <param name="botDataFactory">The bot data factory.</param> /// <param name="credentials">The credentials.</param> public ApprovalEventStrategy(IBotDataFactory botDataFactory, MicrosoftAppCredentials credentials) { botDataFactory.ThrowIfNull(nameof(botDataFactory)); credentials.ThrowIfNull(nameof(credentials)); this.botDataFactory = botDataFactory; this.credentials = credentials; }
/// <summary> /// Initializes a new instance of the <see cref="AuthorizeController"/> class. /// </summary> /// <param name="appSecret">The app secret.</param> /// <param name="authorizeUrl">The authorize url.</param> /// <param name="authenticationService">The authentication service.</param> /// <param name="botDataFactory">The bot data factory;</param> /// <param name="vstsService">The profileService.s</param> public AuthorizeController(string appSecret, Uri authorizeUrl, IAuthenticationService authenticationService, IBotDataFactory botDataFactory, IVstsService vstsService) { appSecret.ThrowIfNull(nameof(appSecret)); authorizeUrl.ThrowIfNull(nameof(authorizeUrl)); this.appSecret = appSecret; this.authenticationService = authenticationService ?? throw new ArgumentNullException(nameof(authenticationService)); this.authorizeUrl = authorizeUrl; this.botDataFactory = botDataFactory ?? throw new ArgumentNullException(nameof(botDataFactory)); this.vstsService = vstsService ?? throw new ArgumentNullException(nameof(vstsService)); }
public AuthorizeController( string appSecret, Uri authorizeUrl, IAuthenticationService authenticationService, IProfileService profileService, IBotDataFactory botDataFactory) { this._appSecret = appSecret; this._authorizeUrl = authorizeUrl; this._authenticationService = authenticationService; this._profileService = profileService; this._botDataFactory = botDataFactory; }