Ejemplo n.º 1
0
 public static bool TryGetRequestType(this IRequestTypeProvider provider, string name, out Type matchedType)
 {
     return((matchedType = provider.GetRequestType(name)) != null);
 }
Ejemplo n.º 2
0
 public ApiController(IMediator mediator, IRequestTypeProvider requestTypeProvider)
 {
     this.mediator            = mediator;
     this.requestTypeProvider = requestTypeProvider;
     this.serializer          = JsonSerializer.CreateDefault();
 }