-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Hi.
Thank you for TypedSignalR.Client.DevTools.
I would like to request the ability to pre-fill a JSON template for user defined input types on hub methods.
For example:
The feature would be similar to using
Swashbuckle.Examples
or
NSwag.Examples
I would then decorate a hub method with one or more examples from which the user can choose.
[SignalRRequestExample(typeof(UserDefinedType), typeof(UserDefinedTypeExample))]
public Task<UserDefinedType> Echo(UserDefinedType instance)
{
...
}
public class UserDefinedTypeExample : SignalRExampleProvider<UserDefinedType>
{
public override UserDefinedType GetExample()
{
return new UserDefinedType
{
Guid = Guid.NewGuid();
DateTime = DateTime.UtcNow;
};
}
}Thank you.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request