1
0
mirror of synced 2024-11-14 17:33:49 +00:00
PettingZoo/PettingZoo.Core/Generator/IExampleGenerator.cs
2022-01-14 09:13:55 +01:00

34 lines
734 B
C#

using System;
using PettingZoo.Core.Validation;
namespace PettingZoo.Core.Generator
{
public interface IExampleGenerator
{
void Select(object? ownerWindow, Action<IExample> onExampleSelected);
}
public interface IExample
{
string Generate();
}
public interface IClassTypeExample : IExample
{
string AssemblyName { get; }
string? Namespace { get; }
string ClassName { get; }
string FullClassName => (!string.IsNullOrEmpty(Namespace) ? Namespace + "." : "") + ClassName;
bool TryGetPublishDestination(out string exchange, out string routingKey);
}
public interface IValidatingExample : IExample, IPayloadValidator
{
}
}