private static void RegisterSmartSubtransportInternal <T>(SmartSubtransportRegistration <T> registration) where T : SmartSubtransport, new() { try { Proxy.git_transport_register(registration.Scheme, registration.FunctionPointer, registration.RegistrationPointer); } catch { registration.Free(); throw; } }
private static void UnregisterSmartSubtransportInternal <T>(SmartSubtransportRegistration <T> registration) where T : SmartSubtransport, new() { Proxy.git_transport_unregister(registration.Scheme); registration.Free(); }