mirror of
https://github.com/nsnail/NetAdmin.git
synced 2025-08-02 18:17:31 +08:00
build: 📦 nuget package与 project refrence 切换脚本 (#199)
Co-authored-by: tk <fiyne1a@dingtalk.com>
This commit is contained in:
@ -8,9 +8,9 @@ public sealed record SeedDataInsertedEvent : DataAbstraction, IEventSource
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="SeedDataInsertedEvent" /> class.
|
||||
/// </summary>
|
||||
public SeedDataInsertedEvent(int insertedCount, bool isConsumOnce = false)
|
||||
public SeedDataInsertedEvent(int insertedCount, bool isConsumeOnce = false)
|
||||
{
|
||||
IsConsumOnce = isConsumOnce;
|
||||
IsConsumeOnce = isConsumeOnce;
|
||||
InsertedCount = insertedCount;
|
||||
CreatedTime = DateTime.Now;
|
||||
EventId = nameof(SeedDataInsertedEvent);
|
||||
@ -23,7 +23,7 @@ public sealed record SeedDataInsertedEvent : DataAbstraction, IEventSource
|
||||
public string EventId { get; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool IsConsumOnce { get; }
|
||||
public bool IsConsumeOnce { get; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public CancellationToken CancellationToken { get; init; }
|
||||
|
@ -8,13 +8,13 @@ public abstract record SqlCommandEvent : DataAbstraction, IEventSource
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="SqlCommandEvent" /> class.
|
||||
/// </summary>
|
||||
protected SqlCommandEvent(bool isConsumOnce = false)
|
||||
protected SqlCommandEvent(bool isConsumeOnce = false)
|
||||
{
|
||||
IsConsumOnce = isConsumOnce;
|
||||
IsConsumeOnce = isConsumeOnce;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool IsConsumOnce { get; }
|
||||
public bool IsConsumeOnce { get; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public CancellationToken CancellationToken { get; init; }
|
||||
|
@ -3,15 +3,21 @@
|
||||
<Import Project="$(SolutionDir)/build/copy.pkg.xml.comment.files.targets"/>
|
||||
<Import Project="$(SolutionDir)/build/prebuild.targets"/>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="FreeSql.DbContext.NS" Version="3.2.833-ns4"/>
|
||||
<PackageReference Include="FreeSql.Provider.Sqlite.NS" Version="3.2.833-ns4"/>
|
||||
<PackageReference Include="Gurion" Version="1.2.0"/>
|
||||
<PackageReference Include="FreeSql.DbContext.NS" Version="3.2.833-ns5" Label="refs"/>
|
||||
<PackageReference Include="FreeSql.Provider.Sqlite.NS" Version="3.2.833-ns5" Label="refs"/>
|
||||
<PackageReference Include="Gurion" Version="1.2.1" Label="refs"/>
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="4.12.0-3.final"/>
|
||||
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="9.0.0-rc.2.24474.3"/>
|
||||
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="9.0.0"/>
|
||||
<PackageReference Include="Minio" Version="6.0.3"/>
|
||||
<PackageReference Include="NSExt" Version="2.2.0"/>
|
||||
<PackageReference Include="SixLabors.ImageSharp.Drawing" Version="2.1.4"/>
|
||||
<PackageReference Include="System.Drawing.Common" Version="9.0.0-rc.2.24474.1"/>
|
||||
<PackageReference Include="System.Drawing.Common" Version="9.0.0"/>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<!--<ProjectReference Include="$(SolutionDir)/refs/FreeSql/FreeSql.DbContext/FreeSql.DbContext.csproj" Label="refs"/>-->
|
||||
<!--<ProjectReference Include="$(SolutionDir)/refs/FreeSql/FreeSql/FreeSql.csproj" Label="refs"/>-->
|
||||
<!--<ProjectReference Include="$(SolutionDir)/refs/FreeSql/Providers/FreeSql.Provider.Sqlite/FreeSql.Provider.Sqlite.csproj" Label="refs"/>-->
|
||||
<!--<ProjectReference Include="$(SolutionDir)/refs/Gurion/src/Gurion/Gurion.csproj" Label="refs"/>-->
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="$(SolutionDir)/assets/res/NetAdmin.Statements.ln">
|
||||
|
@ -11,11 +11,11 @@ public sealed record RequestLogEvent : DataAbstraction, IEventSourceGeneric<Crea
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="RequestLogEvent" /> class.
|
||||
/// </summary>
|
||||
public RequestLogEvent(CreateRequestLogReq data, bool isConsumOnce = false, object payload = default, DateTime createdTime = default
|
||||
public RequestLogEvent(CreateRequestLogReq data, bool isConsumeOnce = false, object payload = default, DateTime createdTime = default
|
||||
, CancellationToken cancellationToken = default)
|
||||
{
|
||||
Data = data;
|
||||
IsConsumOnce = isConsumOnce;
|
||||
IsConsumeOnce = isConsumeOnce;
|
||||
Payload = payload;
|
||||
CreatedTime = createdTime;
|
||||
CancellationToken = cancellationToken;
|
||||
@ -34,7 +34,7 @@ public sealed record RequestLogEvent : DataAbstraction, IEventSourceGeneric<Crea
|
||||
public string EventId => nameof(RequestLogEvent);
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool IsConsumOnce { get; }
|
||||
public bool IsConsumeOnce { get; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public object Payload { get; }
|
||||
|
@ -11,13 +11,13 @@ public sealed record UserCreatedEvent : DataAbstraction, IEventSourceGeneric<Use
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="UserCreatedEvent" /> class.
|
||||
/// </summary>
|
||||
public UserCreatedEvent(UserInfoRsp data, DateTime createdTime = default, bool isConsumOnce = false, object payload = default
|
||||
public UserCreatedEvent(UserInfoRsp data, DateTime createdTime = default, bool isConsumeOnce = false, object payload = default
|
||||
, CancellationToken cancellationToken = default)
|
||||
{
|
||||
Data = data;
|
||||
CancellationToken = cancellationToken;
|
||||
CreatedTime = createdTime;
|
||||
IsConsumOnce = isConsumOnce;
|
||||
IsConsumeOnce = isConsumeOnce;
|
||||
Payload = payload;
|
||||
}
|
||||
|
||||
@ -34,7 +34,7 @@ public sealed record UserCreatedEvent : DataAbstraction, IEventSourceGeneric<Use
|
||||
public string EventId => nameof(UserCreatedEvent);
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool IsConsumOnce { get; }
|
||||
public bool IsConsumeOnce { get; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public object Payload { get; }
|
||||
|
@ -11,13 +11,13 @@ public sealed record UserUpdatedEvent : DataAbstraction, IEventSourceGeneric<Use
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="UserUpdatedEvent" /> class.
|
||||
/// </summary>
|
||||
public UserUpdatedEvent(UserInfoRsp data, DateTime createdTime = default, bool isConsumOnce = false, object payload = default
|
||||
public UserUpdatedEvent(UserInfoRsp data, DateTime createdTime = default, bool isConsumeOnce = false, object payload = default
|
||||
, CancellationToken cancellationToken = default)
|
||||
{
|
||||
Data = data;
|
||||
CancellationToken = cancellationToken;
|
||||
CreatedTime = createdTime;
|
||||
IsConsumOnce = isConsumOnce;
|
||||
IsConsumeOnce = isConsumeOnce;
|
||||
Payload = payload;
|
||||
}
|
||||
|
||||
@ -34,7 +34,7 @@ public sealed record UserUpdatedEvent : DataAbstraction, IEventSourceGeneric<Use
|
||||
public string EventId => nameof(UserUpdatedEvent);
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool IsConsumOnce { get; }
|
||||
public bool IsConsumeOnce { get; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public object Payload { get; }
|
||||
|
@ -11,13 +11,13 @@ public sealed record VerifyCodeCreatedEvent : DataAbstraction, IEventSourceGener
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="VerifyCodeCreatedEvent" /> class.
|
||||
/// </summary>
|
||||
public VerifyCodeCreatedEvent(QueryVerifyCodeRsp data, DateTime createdTime = default, bool isConsumOnce = false, object payload = default
|
||||
public VerifyCodeCreatedEvent(QueryVerifyCodeRsp data, DateTime createdTime = default, bool isConsumeOnce = false, object payload = default
|
||||
, CancellationToken cancellationToken = default)
|
||||
{
|
||||
Data = data;
|
||||
CancellationToken = cancellationToken;
|
||||
CreatedTime = createdTime;
|
||||
IsConsumOnce = isConsumOnce;
|
||||
IsConsumeOnce = isConsumeOnce;
|
||||
Payload = payload;
|
||||
}
|
||||
|
||||
@ -34,7 +34,7 @@ public sealed record VerifyCodeCreatedEvent : DataAbstraction, IEventSourceGener
|
||||
public string EventId => nameof(VerifyCodeCreatedEvent);
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool IsConsumOnce { get; }
|
||||
public bool IsConsumeOnce { get; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public object Payload { get; }
|
||||
|
@ -3,7 +3,7 @@
|
||||
<ProjectReference Include="../NetAdmin.Host/NetAdmin.Host.csproj"/>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="9.0.0-rc.2.24474.3"/>
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="9.0.0"/>
|
||||
<PackageReference Include="xunit" Version="2.9.2"/>
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.0-pre.49">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
|
Reference in New Issue
Block a user