/// <summary> /// Releases managed and unmanaged resources used by the current class instance. /// </summary> /// <param name="disposing"> /// Indicates whether the current method was called from explicitly or implicitly during finalization. /// </param> protected virtual void Dispose(bool disposing) { if (!disposing) { return; } Log.Information("Dispose {0}", nameof(SetFacetOperation)); _config = null; }
/// <summary> /// Releases managed and unmanaged resources used by the current class instance. /// </summary> /// <param name="disposing"> /// Indicates whether the current method was called from explicitly or implicitly during finalization. /// </param> protected virtual void Dispose(bool disposing) { if (!disposing) { return; } Log.Information("Dispose {0}", nameof(ContactCreationTrackerPlugin)); _config = null; }
/// <summary> /// Releases managed and unmanaged resources used by the current class instance. /// </summary> /// <param name="disposing"> /// Indicates whether the current method was called from explicitly or implicitly during finalization. /// </param> protected virtual void Dispose(bool disposing) { if (!disposing) { return; } Log.Information("Dispose {0}", nameof(TrackInteractionsPlugin)); _config = null; }
/// <summary>Subscribes to events current plugin listens to.</summary> /// <param name="config"> /// A <see cref="T:Sitecore.XConnect.XdbContextConfiguration" /> object that provides access to the configuration settings. /// </param> /// <exception cref="T:System.ArgumentNullException"> /// Argument <paramref name="config" /> is a <b>null</b> reference. /// </exception> public void Register(XdbContextConfiguration config) { Log.Information("Register {0}", nameof(TrackFacetsPlugin)); _config = config; RegisterEvents(); }
/// <summary>Subscribes to events the current plugin listens to.</summary> /// <param name="config"> /// A <see cref="T:Sitecore.XConnect.XdbContextConfiguration" /> object that provides access to the configuration settings. /// </param> /// <exception cref="T:System.ArgumentNullException"> /// Argument <paramref name="config" /> is a <b>null</b> reference. /// </exception> public void Register(XdbContextConfiguration config) { Log.Information("Register {0}", nameof(ContactCreationTrackerPlugin)); _config = config; RegisterEvents(); }
public void Register(XdbContextConfiguration config) { configuration = Condition.Requires(config, "config").IsNotNull().Value; configuration.OperationAdded += OnOperationAdded; }