Exemple #1
0
 public ServiceMethod(MethodInfo methodInfo, object service)
 {
     MethodInfo   = methodInfo ?? throw new ArgumentNullException(nameof(methodInfo));
     Service      = service ?? throw new ArgumentNullException(nameof(service));
     Name         = methodInfo.Name;
     ReturnType   = methodInfo.ReturnType;
     ResponseType = GetResponseType(methodInfo);
 }
Exemple #2
0
 public ResponseTypeNotSupportedException(MethodResponseType responseType, string message, Exception innerException) : this(message, innerException)
 {
     ResponseType = responseType;
 }
Exemple #3
0
 public ResponseTypeNotSupportedException(MethodResponseType responseType, Exception innerException) : this(responseType, $@"ResponseType {responseType} is not supported.", innerException)
 {
 }
Exemple #4
0
 public void Deconstruct(out string name, out Type returnType, out MethodInfo methodInfo, out object service, out MethodResponseType responseType) =>
 (name, returnType, methodInfo, service, responseType) = (Name, ReturnType, MethodInfo, Service, ResponseType);