Пример #1
0
 public static IGrainHttpResult NotFound(this Grain grain) => NotFound(grain, null);
Пример #2
0
 public static IGrainHttpResult <TResult> Forbidden <TResult>(this Grain grain, TResult body, Dictionary <string, string> responseHeaders)
 {
     return(new GrainHttpResult <TResult> {
         Body = body, ResponseHeaders = responseHeaders, StatusCode = HttpStatusCode.Forbidden
     });
 }
Пример #3
0
 public static IGrainHttpResult <TResult> Ok <TResult>(this Grain grain, TResult body) => Ok(grain, body, null);
Пример #4
0
 public static IGrainHttpResult <TResult> Forbidden <TResult>(this Grain grain, TResult body) => Forbidden(grain, body, null);
Пример #5
0
 public static IGrainHttpResult <TResult> Forbidden <TResult>(this Grain grain) => Forbidden <TResult>(grain, default(TResult), null);
Пример #6
0
 public static IGrainHttpResult NoContent(this Grain grain, Dictionary <string, string> responseHeaders)
 {
     return(new GrainHttpResult <object> {
         ResponseHeaders = responseHeaders, StatusCode = HttpStatusCode.NoContent
     });
 }
Пример #7
0
 public static IGrainHttpResult NotImplemented(this Grain grain) => NotImplemented(grain, null);
Пример #8
0
 public static IGrainHttpResult <TResult> Unauthorized <TResult>(this Grain grain, TResult body) => Unauthorized(grain, body, null);
Пример #9
0
 public static IGrainHttpResult <TResult> Unauthorized <TResult>(this Grain grain) => Unauthorized <TResult>(grain, default(TResult), null);
Пример #10
0
 public static IGrainHttpResult <TResult> BadRequest <TResult>(this Grain grain) => BadRequest <TResult>(grain, default(TResult), null);
Пример #11
0
 public static IGrainHttpResult <TResult> Unauthorized <TResult>(this Grain grain, Dictionary <string, string> responseHeaders) => Unauthorized <TResult>(grain, default(TResult), responseHeaders);
Пример #12
0
 public static IGrainHttpResult <TResult> BadRequest <TResult>(this Grain grain, TResult body) => BadRequest(grain, body, null);
Пример #13
0
 public static IGrainHttpResult <TResult> Conflict <TResult>(this Grain grain, TResult body) => Conflict(grain, body, null);
Пример #14
0
 public static IGrainHttpResult <TResult> Accepted <TResult>(this Grain grain, TResult body) => Accepted(grain, body, null);
Пример #15
0
 public static IGrainHttpResult <TResult> Ok <TResult>(this Grain grain) => Ok <TResult>(grain, default(TResult), null);
Пример #16
0
 public static IGrainHttpResult <TResult> Unauthorized <TResult>(this Grain grain, TResult body, Dictionary <string, string> responseHeaders)
 {
     return(new GrainHttpResult <TResult> {
         Body = body, ResponseHeaders = responseHeaders, StatusCode = HttpStatusCode.Unauthorized
     });
 }
Пример #17
0
 public static IGrainHttpResult NoContent(this Grain grain) => NoContent(grain, null);
Пример #18
0
 public static IGrainHttpResult <TResult> Forbidden <TResult>(this Grain grain, Dictionary <string, string> responseHeaders) => Forbidden <TResult>(grain, default(TResult), responseHeaders);
Пример #19
0
 public static IStreamProvider GetStreamProvider(this Grain grain, string name)
 => GetStreamProvider((IGrainBase)grain, name);
Пример #20
0
 public static IGrainHttpResult NotAcceptable(this Grain grain) => NotAcceptable(grain, null);