This file contains 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.Threading.Tasks; | |
using BrunoMartinsPro.Data.Models; | |
namespace BrunoMartinsPro.Utils.MicrosoftAspNetCoreIdentity | |
{ | |
public interface IMicrosoftAspNetCoreIdentityUtils | |
{ | |
Task<string> GenerateUserTwoFactorSecurityCode(ApplicationUser user, string securityType); | |
} | |
} |
This file contains 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.Threading.Tasks; | |
using AutoMapper; | |
using BrunoMartinsPro.Models.Report; | |
using BrunoMartinsPro.DTO.Report; | |
namespace BrunoMartinsPro.Config | |
{ |
This file contains 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.Globalization; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using CsvHelper; | |
using BrunoMartinsPro.Data.Interfaces.Utils.CSV; |
This file contains 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
namespace BrunoMartinsPro | |
{ | |
public class DocumentModel | |
{ | |
public long DocumentId { get; set; } | |
public MetadataModel Metadata { get; set; } | |
} | |
} |
This file contains 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.Threading.Tasks; | |
namespace BrunoMartinsPro.Http | |
{ | |
public interface IJsonHttpClient | |
{ | |
/// <summary> | |
/// Add Request Headers | |
/// </summary> | |
/// <param name="name"></param> |
This file contains 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.Linq; | |
using System.Collections.Generic; | |
using System.DirectoryServices; | |
using BrunoMartinsPro.Data.Interfaces.Utils.ActiveDirectory; | |
namespace BrunoMartinsPro.Utils.ActiveDirectory | |
{ | |
public class ADUtils : IADUtils | |
{ |
This file contains 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
-- Verify the state of the service broker in SQL Server Management Studio | |
-- Database -> Properties -> Options -> Service Broker Tab -> Broker Enabled | |
-- To enable broker | |
ALTER DATABASE [database] SET ENABLE_BROKER | |
-- To disable broker | |
ALTER DATABASE [database] SET DISABLE_BROKER | |
-- When having multiple service brokers, each service broker must have an unique identifier to run. |
This file contains 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 Microsoft.AspNetCore.Mvc | |
using Microsoft.AspNetCore.Rewrite; | |
using Microsoft.Extensions.Primitives; | |
namespace BrunoMartinsPro.Startup | |
{ | |
public class Startup | |
{ |
This file contains 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
... | |
namespace BrunoMartinsPro.Startup | |
{ | |
public class Startup | |
{ | |
... | |
public Startup(IHostingEnvironment env) | |
{ |
This file contains 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 AutoMapper; | |
using BrunoMartinsPro.Data; | |
namespace BrunoMartinsPro.Config | |
{ | |
public class AutoMapperConfig | |
{ | |
/// <summary> | |
/// Initialize and configure AutoMapper Mappings | |
/// </summary> |
OlderNewer