Exemplo n.º 1
0
        protected override async Task OnEnumChildren(bool deep)
        {
            Services.Clear();
            var services = await _fabricClient.QueryManager.GetServiceListAsync(_application.ApplicationName);

            foreach (var service in services)
            {
                var sfService = new SFService(_fabricClient, this, service);
                Services.Add(sfService);
                if (deep)
                {
                    await sfService.EnumChildren(deep);
                }
            }

            LoadInformation = await _fabricClient.QueryManager.GetApplicationLoadInformationAsync(_application.ApplicationName.AbsolutePath);
        }
Exemplo n.º 2
0
 public SFPartition(FabricClient fabricClient, SFService parent, Partition partition)
     : base(fabricClient)
 {
     _parent    = parent;
     _partition = partition;
 }