public HelseIdEnabler() { InitializeComponent(); configurations = Bootstrapper.GetInstance <IConfigurations>(); authenticationOperations = Bootstrapper.GetInstance <IAuthenticationOperations>(); // "Fix" textbox txtResult.BorderStyle = 0; txtResult.BackColor = pnlBottom.BackColor; DoubleBuffered = true; var browserCache = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), Path.Combine("HelseIdSampleApp", "cache")); if (!Directory.Exists(browserCache)) { Directory.CreateDirectory(browserCache); } CefSharp.Cef.Initialize(new CefSettings { CachePath = browserCache }, performDependencyCheck: false, browserProcessHandler: null); chromiumWebBrowser = new ChromiumWebBrowser("") { Dock = DockStyle.Fill }; pnlControls.Controls.Add(chromiumWebBrowser); }
public AuthController(ICurrentUserProvider currentUserProvider, IAuthenticationOperations authOper) : base(currentUserProvider) { _authOperations = authOper; }
public SimpleAuthorizationServerProvider( Func <IAuthenticationOperations> authOperationsFactory) { _authOperations = authOperationsFactory.Invoke(); }
public DashboardPage() { this.authOps = IoC.Resolve <IAuthenticationOperations>(); this.serviceLocator = IoC.Resolve <IServiceLocator>(); InitializeComponent(); }