示例#1
0
 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;
     }
 }
示例#2
0
 private static void UnregisterSmartSubtransportInternal <T>(SmartSubtransportRegistration <T> registration)
     where T : SmartSubtransport, new()
 {
     Proxy.git_transport_unregister(registration.Scheme);
     registration.Free();
 }