Пример #1
0
        /// <inheritdoc cref="IAsyncLifetime"/>
        public async override Task InitializeAsync()
        {
            await base.InitializeAsync();

            Address = new ContainerAddress
            {
                Address = Manager.Instance.Address,
                Port    = Manager.Instance.HostPort
            };

            await Initializer.WaitAsync(new GenericContainerStatus(ResourceOptions.StatusChecker, Address));
        }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GenericContainerStatus"/> class.
 /// </summary>
 /// <param name="statusChecker">The status checker.</param>
 /// <param name="address">The address.</param>
 public GenericContainerStatus(Func<ContainerAddress, CancellationToken, Task<Status>> statusChecker,
                               ContainerAddress address)
 {
     _statusChecker = statusChecker;
     _address = address;
 }