mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-02 21:43:08 +00:00
33 lines
788 B
C#
33 lines
788 B
C#
using CodexClient;
|
|
using Utils;
|
|
|
|
namespace AutoClient
|
|
{
|
|
public interface ICodexContext
|
|
{
|
|
string NodeId { get; }
|
|
App App { get; }
|
|
ICodexNode Codex { get; }
|
|
HttpClient Client { get; }
|
|
Address Address { get; }
|
|
}
|
|
|
|
public class CodexContext : ICodexContext
|
|
{
|
|
public CodexContext(App app, ICodexNode codex, HttpClient client, Address address)
|
|
{
|
|
App = app;
|
|
Codex = codex;
|
|
Client = client;
|
|
Address = address;
|
|
NodeId = Guid.NewGuid().ToString();
|
|
}
|
|
|
|
public string NodeId { get; }
|
|
public App App { get; }
|
|
public ICodexNode Codex { get; }
|
|
public HttpClient Client { get; }
|
|
public Address Address { get; }
|
|
}
|
|
}
|