Skip to main content

DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/Vine/Server/Notification/
UnregisterUriHandler.rs

1#![allow(non_snake_case)]
2//! `unregister_uri_handler` — disposes a URI-handler provider handle.
3//! Logs the optional bound scheme alongside the handle for traceability.
4
5use serde_json::Value;
6
7use super::Support::UnregisterByHandle::UnregisterByHandle;
8use crate::{Vine::Server::MountainVinegRPCService::MountainVinegRPCService, dev_log};
9
10pub async fn UnregisterUriHandler(Service:&MountainVinegRPCService, Parameter:&Value) {
11	let Scheme = Parameter.get("scheme").and_then(Value::as_str).unwrap_or("");
12	dev_log!("provider-register", "[ProviderUnregister] uri_handler scheme={}", Scheme);
13	UnregisterByHandle(Service, Parameter, "uri_handler");
14}