public Task <string> UnregisterSiloInstance(SiloInstanceTableEntry entry) { entry.Status = INSTANCE_STATUS_DEAD; logger.Info(ErrorCode.Runtime_Error_100271, "Unregistering silo instance: {0}", entry.ToString()); return(storage.UpsertTableEntryAsync(entry)); }
public Task <string> ActivateSiloInstance(SiloInstanceTableEntry entry) { logger.Info(ErrorCode.Runtime_Error_100272, "Activating silo instance: {0}", entry.ToString()); entry.Status = INSTANCE_STATUS_ACTIVE; return(storage.UpsertTableEntryAsync(entry)); }
public void RegisterSiloInstance(SiloInstanceTableEntry entry) { entry.Status = INSTANCE_STATUS_CREATED; logger.Info(ErrorCode.Runtime_Error_100270, "Registering silo instance: {0}", entry.ToString()); Task.WaitAll(new Task[] { storage.UpsertTableEntryAsync(entry) }); }
public void ActivateSiloInstance(SiloInstanceTableEntry entry) { logger.Info(ErrorCode.Runtime_Error_100272, "Activating silo instance: {0}", entry.ToString()); entry.Status = INSTANCE_STATUS_ACTIVE; storage.UpsertTableEntryAsync(entry) .WaitWithThrow(AzureTableDefaultPolicies.TableOperationTimeout); }
public void UnregisterSiloInstance(SiloInstanceTableEntry entry) { entry.Status = INSTANCE_STATUS_DEAD; logger.Info(ErrorCode.Runtime_Error_100271, "Unregistering silo instance: {0}", entry.ToString()); storage.UpsertTableEntryAsync(entry) .WaitWithThrow(AzureTableDefaultPolicies.TableOperationTimeout); }