private async Task GetMetadataAsync(HttpContext httpContext, StatefulServiceContext serviceContext, IReliableStateManager stateManager) { // Query for metadata about reliable collections. string metadata = await stateManager.GetMetadataAsync().ConfigureAwait(false); httpContext.Response.ContentType = "application/xml"; httpContext.Response.StatusCode = (int)HttpStatusCode.OK; // Write the response. await httpContext.Response.WriteAsync(metadata).ConfigureAwait(false); }
Task <string> IQueryableService.GetMetadataAsync() { return(StateManager.GetMetadataAsync()); }