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