-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
TitleHHHH
authored and
TitleHHHH
committed
Feb 6, 2024
1 parent
84f0cb5
commit 4515f79
Showing
32 changed files
with
237 additions
and
116 deletions.
There are no files selected for viewing
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
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
18 changes: 18 additions & 0 deletions
18
src/CoreLibs/HolyClient.Abstractions/StressTest/BaseStressTestBehavior.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using Avalonia.Controls; | ||
using ReactiveUI; | ||
using Serilog; | ||
using System.Reactive.Disposables; | ||
|
||
namespace HolyClient.Abstractions.StressTest | ||
{ | ||
public abstract class BaseStressTestBehavior : IStressTestBehavior | ||
{ | ||
public ReactiveObject? DefaultViewModel { get; protected set; } | ||
|
||
public ReactiveObject? ProcessViewModel { get; protected set; } | ||
|
||
public ResourceDictionary? Resources { get; protected set; } | ||
|
||
public abstract Task Activate(CompositeDisposable disposables, IEnumerable<IStressTestBot> bots, ILogger logger, CancellationToken cancellationToken); | ||
} | ||
} |
21 changes: 19 additions & 2 deletions
21
src/CoreLibs/HolyClient.Abstractions/StressTest/IStressTestBehavior.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,27 @@ | ||
using System.Reactive.Disposables; | ||
using Avalonia.Controls; | ||
using ReactiveUI; | ||
using System.ComponentModel; | ||
using System.Reactive.Disposables; | ||
|
||
namespace HolyClient.Abstractions.StressTest | ||
{ | ||
|
||
|
||
public interface IStressTestBehavior | ||
{ | ||
|
||
public Task Activate(CompositeDisposable disposables, IEnumerable<IStressTestBot> bots, CancellationToken cancellationToken); | ||
|
||
ReactiveObject? DefaultViewModel { get; } | ||
|
||
ReactiveObject? ProcessViewModel { get; } | ||
|
||
|
||
ResourceDictionary? Resources { get; } | ||
|
||
public Task Activate( | ||
CompositeDisposable disposables, | ||
IEnumerable<IStressTestBot> bots, | ||
Serilog.ILogger logger, | ||
CancellationToken cancellationToken); | ||
} | ||
} |
5 changes: 3 additions & 2 deletions
5
src/CoreLibs/HolyClient.Abstractions/StressTest/IStressTestBot.cs
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
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
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
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
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
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
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
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
49 changes: 46 additions & 3 deletions
49
src/CoreLibs/HolyClient.StressTest/TidePVPBehaviorAttack.cs
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
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
21 changes: 21 additions & 0 deletions
21
src/HolyClient/ViewModels/Pages/StressTest/ExceptionInfoViewModel.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
|
||
|
||
namespace HolyClient.ViewModels; | ||
|
||
public sealed class ExceptionInfoViewModel | ||
{ | ||
public string Type { get; private set; } | ||
public string Message { get; private set; } | ||
public int Count { get; private set; } | ||
|
||
public Tuple<string, string> Key { get; private set; } | ||
|
||
public ExceptionInfoViewModel(string type, string message, int count) | ||
{ | ||
Type = type; | ||
Message = message; | ||
Count = count; | ||
Key = Tuple.Create<string, string>(Type, Message); | ||
} | ||
} |
Oops, something went wrong.