예제 #1
0
        public async Task <String> Put([FromBody] Diagram diagram)
        {
            IStatefulDiagramApi info = ServiceProxy.Create <IStatefulDiagramApi>(
                new Uri(uriString: "fabric:/DiagramApp/DiagramApi"),
                new ServicePartitionKey(0));
            String response = await info.updateDiagram(diagram.GUID, diagram.DiagramJson);

            return(response);
        }
예제 #2
0
        public async Task <String> GetDiagramInfo(String diagramId, String tenantName)
        {
            IStatefulDiagramApi diagram = ServiceProxy.Create <IStatefulDiagramApi>(
                new Uri(uriString: "fabric:/DiagramApp/DiagramApi"),
                new ServicePartitionKey(0));

            String response = await diagram.getDiagramProperties(diagramId);

            return(response);
        }
예제 #3
0
        public async Task <String> CreateOrInsertDiagramJson([FromBody] InputData diagramData)
        {
            IStatefulDiagramApi info = ServiceProxy.Create <IStatefulDiagramApi>(
                new Uri(uriString: "fabric:/DiagramApp/DiagramApi"),
                new ServicePartitionKey(0));

            String output = await info.GetFromDatabaseWithTenantId(diagramData.data, diagramData.tenantName);

            return(output);
        }
예제 #4
0
        public async Task <String> UpdateAreaDiagramJson([FromBody] InputData diagramData)
        {
            IStatefulDiagramApi info = ServiceProxy.Create <IStatefulDiagramApi>(
                new Uri(uriString: "fabric:/DiagramApp/DiagramApi"),
                new ServicePartitionKey(0));

            String response = await info.updateAreaDiagramJson(diagramData.data, diagramData.tenantName);

            return(response);
        }
예제 #5
0
        public async Task <String> GetTenantId(String tenantName)
        {
            IStatefulDiagramApi info = ServiceProxy.Create <IStatefulDiagramApi>(
                new Uri(uriString: "fabric:/DiagramApp/DiagramApi"),
                new ServicePartitionKey(0));


            String output = await info.GetTenantId(tenantName);

            return(output);
        }