protected override string GetResponse(ResponseWriterContext context) { return(_viewContent.Render(context.Response)); }
protected override HttpContent GetContent(ResponseWriterContext context) { return(new StringContent(context.Response.ToString())); }
WriteResponse(ResponseWriterContext context) { throw new NotImplementedException(); }
protected override void WriteToStream(ResponseWriterContext context, Stream output) { WriteAction(context, output); }
public Task <HttpResponseMessage> Write(ResponseWriterContext context) { WriteCalled = true; WriteContext = context; return(WriteFunc(context)); }
public bool AppliesTo(ResponseWriterContext context) { AppliesToCalled = true; AppliesToContext = context; return(AppliesToFunc?.Invoke(context) ?? true); }
protected override string GetResponse(ResponseWriterContext context) { return(context.Response.SerializeJson(context .RequestContext.Route.ResponseType.Type, _options)); }
protected override string GetResponse(ResponseWriterContext context) { throw new NotImplementedException(); }