Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/21/16 16:48:34 (9 years ago)
Author:
jlodewyc
Message:

#2582 Resource calendar and client group creation, control implemented

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Hubs/CalendarHub.cs

    r13775 r13782  
    4747            var down = JsonConvert.SerializeObject(adminClient.Downtimes);
    4848            Clients.Caller.processDowntime(id, down);
     49        }
     50        public void toggleDisposable(string id)
     51        {
     52            loader();
     53            adminClient.Refresh();
     54            Guid c = Guid.Parse(id);
     55            var obj = adminClient.Resources.ToList().Find(x => x.Id == c);
     56            ((Slave)(obj)).IsDisposable = !((Slave)(obj)).IsDisposable;
     57            adminClient.Store(obj, CancellationToken.None);
     58            Clients.Caller.processDispose( ((Slave)(obj)).IsDisposable);
     59
    4960        }
    5061        public void saveCalendar(string id, string[] del, string[][] add, string[][] upd, bool fresh, bool last)
Note: See TracChangeset for help on using the changeset viewer.