Share via


EventGridModelFactory.ContainerRegistryEventSource(String, String) Method

Definition

Initializes a new instance of ContainerRegistryEventSource.

public static Azure.Messaging.EventGrid.SystemEvents.ContainerRegistryEventSource ContainerRegistryEventSource (string addr = default, string instanceID = default);
static member ContainerRegistryEventSource : string * string -> Azure.Messaging.EventGrid.SystemEvents.ContainerRegistryEventSource
Public Shared Function ContainerRegistryEventSource (Optional addr As String = Nothing, Optional instanceID As String = Nothing) As ContainerRegistryEventSource

Parameters

addr
String

The IP or hostname and the port of the registry node that generated the event. Generally, this will be resolved by os.Hostname() along with the running port.

instanceID
String

The running instance of an application. Changes after each restart.

Returns

A new ContainerRegistryEventSource instance for mocking.

Applies to