コード例 #1
0
        private void CreateResource(Installable app)
        {
            Console.WriteLine("Creating resource on " + app.ApplicationName);
            var approved = new ApprovedDomainSerializer().Get().FirstOrDefault();

            if (approved == null)
            {
                return;
            }

            string tenant = TenantConvention.GetTenant(approved.DomainName);

            var writer = new ResourceWriter(tenant, app);

            writer.WriteAsync().GetAwaiter().GetResult();
        }