Quantcast
Channel: THWACK: All Content - Orion SDK
Viewing all articles
Browse latest Browse all 2677

how to List Resource using C# and orion sdk

$
0
0

I was checking the thread: List Resources By C# Orion SDK?  but when i go to execute the list resource i don't have answer when i go to execute a list resource with the next code:

 

 

        public JToken GetInterfaces(ISwisClient swisClient, int nodes)

        {

            try

            {

                int[] arrnode = new int[1];

                arrnode[0] = nodes;

                JToken invokeResult = swisClient.InvokeAsync("Orion.NPM.Interfaces", "DiscoverInterfacesOnNode", arrnode[0]).Result;

                return invokeResult;

            }

            catch (Exception e)

            {

                return 0;

            }

        }

 

But it never goes over the return sentence, and neither enters the catch sentence.

 

with the add node, i can have a good experience. But in this moment i can't continue.

 

robdogaz thanks for your help.

 

Can you please help me?.


Viewing all articles
Browse latest Browse all 2677

Trending Articles