public ParameterMetadata(JsonName name, Type type, int index, BindingStyle bindingStyle, bool isOptional) { Name = name ?? throw new ArgumentNullException(nameof(name)); Type = type; Index = index; BindingStyle = bindingStyle; IsOptional = isOptional; }
public MethodMetadata(JsonRpcMethodOptions methodOptions, JsonName controller, JsonName action) { MethodOptions = methodOptions; Controller = controller ?? throw new ArgumentNullException(nameof(controller)); Action = action ?? throw new ArgumentNullException(nameof(action)); }