/// <inheritdoc/> public async override Task <string> RetrieveSerializedEntityState(EntityId entityId, JsonSerializerSettings serializerSettings) { var instanceId = ProviderUtils.GetSchedulerIdFromEntityId(entityId); OrchestrationState state = await this.Service.GetOrchestrationStateAsync(instanceId, true, true); if (ProviderUtils.TryGetEntityStateFromSerializedSchedulerState(state, serializerSettings, out string result)) { return(result); } else { return(null); } }