Admin.ReadModels.Client.ProductsView.InitialiseProducts C# (CSharp) Method

InitialiseProducts() private static method

private static InitialiseProducts ( ) : void
return void
        private static void InitialiseProducts()
        {
            var result = Try.To(LoadProducts)
                .OnFailedAttempt(() => Thread.Sleep(1000))
                .UpTo(3)
                .Times();

            if (!result.Succeeded)
                throw new ApplicationException("Failed to load the Products from the Admin service.", result.Exception);
        }