This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { HttpClient, HttpErrorResponse } from '@angular/common/http'; | |
import { Injectable } from '@angular/core'; | |
import { map, Observable, of, switchMap } from 'rxjs'; | |
import { AuthenticatedResult, OidcClientNotification, OidcSecurityService, OpenIdConfiguration, UserDataResult } from 'angular-auth-oidc-client'; | |
import { flatten } from '@angular/compiler'; | |
import { IAuthState } from './IAuthState'; | |
@Injectable({ | |
providedIn: 'root' | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using IdentityServer.Data; | |
using IdentityServer.Models; | |
using Microsoft.AspNetCore.Identity; | |
using Microsoft.AspNetCore.Identity.UI.Services; | |
using Microsoft.EntityFrameworkCore; | |
using PrefeituraBrasil.IdentityServer; | |
using PrefeituraBrasil.IdentityServer.Service; | |
using PrefeituraBrasil.Infra.Comunicacoes.Email; | |
using PrefeituraBrasil.Infra.Comunicacoes.Email.Interfaces; | |
using Serilog; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using Microsoft.AspNetCore.Routing; | |
using Microsoft.Extensions.DependencyInjection; | |
namespace ServiceCollectionExtensions | |
{ | |
public static class ServiceCollectionExtensions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'Gets the server name from a DSN registered in the computer | |
Public Shared Function GetServerNameFromDSN(ByVal nomeDSN As String) As String | |
Dim retorno As String = String.Empty | |
Try | |
Using key As RegistryKey = Registry.CurrentUser.OpenSubKey("SOFTWARE\ODBC\ODBC.INI\" & nomeDSN) | |
If key IsNot Nothing Then | |
Dim o As Object = key.GetValue("Server") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This file was initially generated by Windows Terminal 1.1.2233.0 | |
// It should still be usable in newer versions, but newer versions might have additional | |
// settings, help text, or changes that you will not see unless you clear this file | |
// and let us generate a new one for you. | |
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", |