public Orchestrator(IInitializer initializer, ILog log, IAdo ado, IAuthenticationWrapper authWrapper, IRetryClient retryClient, ILogAppender logAppender, IO365ActivityApiWrapper o365ActivityApiWrapper) { _log = log; _logAppender = logAppender; _authWrapper = authWrapper; _o365ActivityApiWrapper = o365ActivityApiWrapper; _ado = ado; _initializer = initializer; _configuration = _initializer.Configuration; _retryClient = retryClient; AuditLogTimeStampsForPowerPlatform = GetLatestTimeStampForPowerPlatform; _O365ServiceAuthenticationContract = new ServiceAuthenticationContract { ClientId = _configuration.AppSettings.AuditLogClientId, ClientSecret = _configuration.AppSettings.AuditLogClientSecret, LoginUrl = _configuration.AppSettings.LoginUrl, ResourceUrl = _configuration.AppSettings.Office365ResourceId, TenantId = _configuration.AppSettings.TenantId }; }
public GreetIntent( IAuthenticationWrapper authWrapper, IIntentInputFactory inputFactory, IConversationResponseFactory responseFactory, IOleSettings settings) : base(inputFactory, responseFactory, settings) { AuthenticationWrapper = authWrapper; }
public KickUserIntent( IAuthenticationWrapper authWrapper, IIntentOptionSetFactory optionSetFactory, IConversationResponseFactory responseFactory, IOleSettings settings) : base(optionSetFactory, responseFactory, settings) { AuthenticationWrapper = authWrapper; }
public Ado(IInitializer initializer, ILog log, IAuthenticationWrapper authWrapper, IMetadataStoreContextFactory metadataStoreContextFactory ) { _configuration = initializer.Configuration; _log = log; _authWrapper = authWrapper; _metadataStoreContextFactory = metadataStoreContextFactory; }
public UnlockItemsIntent( IAuthenticationWrapper authWrapper, IContentSearchWrapper searchWrapper, IIntentInputFactory inputFactory, IConversationResponseFactory responseFactory, IOleSettings settings) : base(inputFactory, responseFactory, settings) { AuthenticationWrapper = authWrapper; ContentSearchWrapper = searchWrapper; }
public LogoutIntent( HttpContextBase context, IAuthenticationWrapper authWrapper, IIntentOptionSetFactory optionSetFactory, IConversationResponseFactory responseFactory, IOleSettings settings) : base(optionSetFactory, responseFactory, settings) { Context = context; AuthenticationWrapper = authWrapper; }
public GreetIntent( ITextTranslatorWrapper translator, IAuthenticationWrapper authWrapper, IIntentOptionSetFactory optionSetFactory, IConversationResponseFactory responseFactory, IOleSettings settings) : base(optionSetFactory, responseFactory, settings) { Translator = translator; AuthenticationWrapper = authWrapper; }
public LockedItemCountIntent( IAuthenticationWrapper authWrapper, IContentSearchWrapper searchWrapper, IIntentOptionSetFactory optionSetFactory, IConversationResponseFactory responseFactory, IOleSettings settings) : base(optionSetFactory, responseFactory, settings) { AuthenticationWrapper = authWrapper; ContentSearchWrapper = searchWrapper; }
public KickUserIntent( IAuthenticationWrapper authWrapper, IIntentInputFactory inputFactory, IConversationResponseFactory responseFactory, IParameterResultFactory resultFactory, IOleSettings settings) : base(inputFactory, responseFactory, settings) { AuthenticationWrapper = authWrapper; ConversationParameters.Add(new UserParameter(UserKey, inputFactory, authWrapper, resultFactory)); }
public UserParameter( string paramName, IIntentInputFactory inputFactory, IAuthenticationWrapper authWrapper, IParameterResultFactory resultFactory) { ParamName = paramName; ParamMessage = Translator.Text("Chat.Parameters.UserParameterRequest"); IntentInputFactory = inputFactory; AuthenticationWrapper = authWrapper; ResultFactory = resultFactory; IsOptional = false; }
public MetadataStoreContextFactory(IInitializer initializer, IAuthenticationWrapper authWrapper) { _configuration = initializer.Configuration; _authWrapper = authWrapper; _sqlServiceAuthenticationContract = new ServiceAuthenticationContract { ClientId = _configuration.AppSettings.DatabaseClientId, ClientSecret = _configuration.AppSettings.DatabaseClientSecret, LoginUrl = _configuration.AppSettings.LoginUrl, ResourceUrl = _configuration.AppSettings.DatabaseResourceId, TenantId = _configuration.AppSettings.TenantId }; }
public RetryClient(ILog log, IAuthenticationWrapper authWrapper) { _log = log; _authWrapper = authWrapper; _httpClient = new HttpClient(); _httpClient.Timeout = TimeSpan.FromMinutes(1); _asyncRetryPolicy = Policy.Handle <HttpRequestException>() .Or <TaskCanceledException>() .Or <Exception>() .OrResult <HttpResponseMessage>(r => r.StatusCode != System.Net.HttpStatusCode.OK) .RetryAsync(3, (exception, retryCount, context) => { _log.Error($"RetryCount: {retryCount}, {exception.Exception.GetExceptionFootprints()}"); }); }
/// <summary> /// Creates Authentication Controllers using Structure Map(SM) to inject dependencies. /// </summary> /// <param name="userService">The SM injected use service</param> /// <param name="authWrapper">The SM injected authentication wrapper depending on the SM configuration</param> public AccountController(IUserService userService, IAuthenticationWrapper authWrapper) { _userService = userService; _authWrapper = authWrapper; }