- CI/CD. *
- Blue-Green Deploy.
- Git. *
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
| <!DOCTYPE html> | |
| <html lang="uk"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>ВиноЗакон — Законодавство України · Виноградарство</title> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/react/18.2.0/umd/react.production.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/18.2.0/umd/react-dom.production.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/7.23.2/babel.min.js"></script> | |
| <style> |
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
| <configuration> | |
| ..... | |
| <connectionStrings> | |
| <add name="PostgreSqlDbContext" connectionString="Host=localhost;Port=5432;database=database_name;user id=postgres;password=psw;timeout=1024" providerName="Npgsql" /> | |
| </connectionStrings> | |
| ..... | |
| <entityFramework> | |
| <defaultConnectionFactory type="Npgsql.NpgsqlServices, Npgsql.EntityFramework" /> | |
| <providers> | |
| <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /> |
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
| public class RequestResponseLoggingMiddleware | |
| { | |
| private readonly RequestDelegate _next; | |
| private readonly ILogger _logger; | |
| public RequestResponseLoggingMiddleware(RequestDelegate next, | |
| ILoggerFactory loggerFactory) | |
| { | |
| _next = next; | |
| _logger = loggerFactory |
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
| public static class RestFactory | |
| { | |
| public static RestClient CreateClient(string baseAddress) | |
| { | |
| var restClient = new RestClient(baseAddress); | |
| restClient.AddHandler("application/json", new JsonDeserializer()); | |
| return restClient; | |
| } | |
| public static RestRequest CreateRequest(string url, Method method) |
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
| SELECT DISTINCT | |
| name AS database_name, | |
| session_id, | |
| host_name, | |
| login_time, | |
| login_name, | |
| reads, | |
| writes | |
| FROM sys.dm_exec_sessions | |
| LEFT OUTER JOIN sys.dm_tran_locks ON sys.dm_exec_sessions.session_id = sys.dm_tran_locks.request_session_id |