Skip to content

Commit

Permalink
Fixing results handler to use the durable function suborchestration t…
Browse files Browse the repository at this point in the history
…o send results
  • Loading branch information
MerrionComputing committed Mar 12, 2019
1 parent 97c5d86 commit e53553e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 24 deletions.
Expand Up @@ -19,26 +19,14 @@ public class Get_League_Summary_Definition_Return
/// <summary>
/// The unique identifier of the query for which this result was returned
/// </summary>
private readonly Guid queryId;
public Guid QueryIdentifier
{
get
{
return queryId;
}
}
public Guid QueryIdentifier { get; set; }


/// <summary>
/// The unique identifier for the league for which this query data are returned
/// </summary>
private readonly string leagueName;
public string LeagueName
{
get
{
return leagueName;
}
}
public string LeagueName { get; set; }


public string Location { get; set; }

Expand All @@ -50,13 +38,15 @@ public string LeagueName
Guid queryIdIn,
string leagueNameIn)
{
queryId = queryIdIn;
leagueName = leagueNameIn;
QueryIdentifier = queryIdIn;
LeagueName = leagueNameIn;
}

public static implicit operator JObject(Get_League_Summary_Definition_Return v)
{
throw new NotImplementedException();
}
/// <summary>
/// Empty constructor for serialisation
/// </summary>
public Get_League_Summary_Definition_Return()
{ }

}
}
Expand Up @@ -102,7 +102,7 @@ ILogger log
if (Guid.TryParse(queryId, out queryGuid))
{
// Get the current state of the query...
Projection getQueryState = new Projection(@"Query",
Projection getQueryState = new Projection(Constants.Domain_Query,
queryName,
queryGuid.ToString(),
nameof(Query_Summary_Projection));
Expand Down
Expand Up @@ -376,7 +376,7 @@ Microsoft.Extensions.Logging.ILogger log
{
resp = await context.CallSubOrchestratorWithRetryAsync<ActivityResponse>("QueryOutputProcessorOrchestrator",
DomainSettings.QueryRetryOptions(),
projectionQueryRequest);
request);
}
catch (FunctionFailedException ffs)
{
Expand Down

0 comments on commit e53553e

Please sign in to comment.