public static void Register(Type t) { try { COMHelper.RegasmRegisterLocalService(t, new Guid(AppId), ServiceName); } catch (Exception ex) { Console.WriteLine(ex.Message); // Log the error throw ex; // Re-throw the exception } }
public static void Register(Type t) { try { COMHelper.RegasmRegisterLocalService(t, new Guid(AppId), ServiceName); } catch (Exception ex) { Console.WriteLine(ex.Message); // Log the error throw ex; // Re-throw the exception } }