// Manage registration of p4com // using static constructor to ensure registration happens only once static PerforcePlugin() { var registrar = new Registrar( Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\p4com.dll"); registrar.RegisterComDLL(); PluginFinalizer = new Finalizer(registrar); }
internal Finalizer(Registrar registrar) { _registrar = registrar; }