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); }
public ResponseTypeNotSupportedException(MethodResponseType responseType, string message, Exception innerException) : this(message, innerException) { ResponseType = responseType; }
public ResponseTypeNotSupportedException(MethodResponseType responseType, Exception innerException) : this(responseType, $@"ResponseType {responseType} is not supported.", innerException) { }
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);