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
sonarqube-check: | |
image: mcr.microsoft.com/dotnet/core/sdk:latest | |
variables: | |
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache | |
GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task | |
cache: | |
key: "${CI_JOB_NAME}" | |
paths: | |
- .sonar/cache | |
script: |
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
namespace Dumper; | |
public class Dumper{ | |
private static void LogAllProperties(Item item, Device device) | |
{ | |
LogDeviceProperties(device); | |
LogItemProperties(item); | |
} |
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
namespace WIAHelper; | |
public class WIAHelper | |
{ | |
readonly DeviceManager _deviceManager; | |
public WIAHelper() | |
{ | |
_deviceManager = new DeviceManager(); | |
} |
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 AutoMapper; | |
using System.Reflection; | |
namespace Microsoft.Extensions.DependencyInjection | |
{ | |
public static class MapperBuilderExtensions | |
{ | |
public static IServiceCollection AddAutoMapperModule<T>(this IServiceCollection services) where T : Profile | |
{ | |
List<Type> profiles = []; |
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
[Persistent(nameof(BaseAuditableDataObject))] | |
public abstract class BaseAuditableDataObject : BaseDataObject | |
{ | |
public BaseAuditableDataObject() | |
{ | |
} | |
public BaseAuditableDataObject(Session session) : base(session) | |
{ | |
} |
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
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<appSettings> | |
<add key="Bla:Foo:Zoo" value="SampleValue" /> | |
</appSettings> | |
</configuration> |
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
/// <summary> | |
/// It is the method that returns the selected data in generic type | |
/// using the repository view in all Devexpress components that can make selections. | |
/// </summary> | |
/// <typeparam name="T">Surrogate Type</typeparam> | |
/// <param name="gridView">Repository view on component</param> | |
/// <returns></returns> | |
public static IEnumerable<T> GetSelectedSurrogates<T>(this GridView gridView) where T : class | |
{ | |
if (gridView.SelectedRowsCount > 0) |
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
https://nodejs.org/dist/v21.6.0/node-v21.6.0-x64.msi | |
Just copy | |
C:\Program Files\nodejs -> node_modules folder | |
to | |
%APPDATA%\npm ? if not exist just create dir then copy. |
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 IoC.DI.WinForm.Sample.Configuration; | |
namespace Microsoft.Extensions.DependencyInjection | |
{ | |
public static class DependencyInjectionResolver | |
{ | |
public static IServiceCollection AddServiceModules(this IServiceCollection services) => | |
services | |
.AddFormModule() | |
.AddEmployeeModule() |
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
WebApplicationBuilder builder = WebApplication.CreateBuilder(args); | |
WebApplication app = builder.Build(); | |
app.UseRequestResponseLogging(); | |
app.Run(); |