public virtual Task <ProcessDefinition> GetProcessDefinition(string id) { IProcessDefinition processDefinition = RetrieveProcessDefinition(id); ProcessDefinitionResource resource = resourceAssembler.ToResource(processDefinitionConverter.From(processDefinition)); return(Task.FromResult(resource.Content)); }
public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hash = (Key != null) ? Key.GetHashCode() : 0; // Suitable nullity checks etc, of course :) hash = (DeploymentId != null) ? hash * 17 + DeploymentId.GetHashCode() : hash; hash = (Name != null) ? hash * 17 + Name.GetHashCode() : hash; hash = (DefinitionKey != null) ? hash * 17 + DefinitionKey.GetHashCode() : hash; hash = (ProcessDefinitionDescription != null) ? hash * 17 + ProcessDefinitionDescription.GetHashCode() : hash; hash = (ProcessDefinitionResource != null) ? hash * 17 + ProcessDefinitionResource.GetHashCode() : hash; hash = (ProcessDefinitionDiagramResourceName != null) ? hash * 17 + ProcessDefinitionDiagramResourceName.GetHashCode() : hash; hash = hash * 17 + ProcessDefinitionHasStartFormKey.GetHashCode(); hash = hash * 17 + ProcessDefinitionHasGraphicalNotation.GetHashCode(); hash = hash * 17 + IsSuspended.GetHashCode(); hash = (TenantId != null) ? hash * 17 + TenantId.GetHashCode() : hash; return(hash); } }