Ejemplo n.º 1
0
 private void OnContainerServiceCreated(ContainerRegistrarTransaction transaction, ContainerServiceCreatedEventArgs e)
 {
     ContainerServiceCreated?.Invoke(transaction, e);
 }
Ejemplo n.º 2
0
        private void RegistrarOnContainerServiceCreated(object sender, ContainerServiceCreatedEventArgs e)
        {
            _client.RegisterContainerService(e.ContainerService, TimeSpan.FromSeconds(30), CancellationToken.None).Wait();

            Logger.Info($"Registering service [{e.ContainerService.ServiceName}] for container [{e.ContainerId.ToShortContainerName()}].");
        }