<Target Name="RarOutput" AfterTargets="ZipOutput">
<PropertyGroup>
<ArchiveFileName>FileName</ArchiveFileName>
<ArchiveFilePath>$([System.IO.Path]::GetFullPath($(OutDir)../$(ArchiveFileName)))</ArchiveFilePath>
<ProgramFilesPath>$([System.Environment]::GetEnvironmentVariable("ProgramFiles"))</ProgramFilesPath>
<RarPath>$([System.IO.Path]::Combine($(ProgramFilesPath), "WinRAR", "Rar.exe"))</RarPath>
</PropertyGroup>
<Message Text="RAR path: $(RarPath)" Importance="high" Condition="Exists($(RarPath))"/>
<Exec Command=""$(RarPath)" a -ep1 -v25600k -tsmcap -m5 -r -k -s -tl -dh -ag[yyyy-MM-ddThh-mm-ss] -hp"File" -x"*.pdb" "$(ArchiveFilePath)(pass=File)" "$(OutDir)"" IgnoreExitCode="true" Condition="Exists($(RarPath))"/>
dotnet Server.dll --urls=http://localhost:5001/
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 StaffService.Dto | |
{ | |
public class ErrorDto | |
{ | |
public int StatusCode { get; set; } | |
public string Message { 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
public class AsyncConverter : MarkupExtension, IValueConverter | |
{ | |
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) | |
{ | |
var task = Task.Run(async () => | |
{ | |
await Task.Delay(3000); | |
return "Async operation"; | |
}); | |
return new TaskCompletionNotifier<string>(task); |
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
public class TopMouseScrollPriorityBehavior | |
{ | |
public static bool GetTopMouseScrollPriority(ScrollViewer obj) | |
{ | |
return (bool)obj.GetValue(TopMouseScrollPriorityProperty); | |
} | |
public static void SetTopMouseScrollPriority(ScrollViewer obj, bool value) | |
{ | |
obj.SetValue(TopMouseScrollPriorityProperty, value); |
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; | |
internal static class ConsoleTable | |
{ | |
public static void Run() | |
{ | |
double[] Rows = { 26000, 28000, 30000, 32000, 34000, 36000, 38000, 40000, 42000, 44000, 46000 }; | |
double[] Cols = { 0, 11000, 20000, 30000, 40000 }; |
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.Xaml.Behaviors; | |
using System; | |
using System.ComponentModel; | |
using System.Windows; | |
using System.Windows.Input; | |
namespace Utilities.WPF.Behaviors; | |
public class DropData : Behavior<UIElement> |
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 Serilog; | |
using ILogger = Microsoft.Extensions.Logging.ILogger; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Hosting; | |
using Microsoft.Extensions.Logging; | |
//....... | |
public static ILogger Logger; |
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.IO; | |
using System.Reflection; | |
using Microsoft.Extensions.Logging; | |
namespace RRJ_Express.Utilities.Logger | |
{ | |
public static class Log4NetExtensions | |
{ | |
//Тут указываем путь куда положили файл настроек логгера |
NewerOlder