Exemplo n.º 1
0
        static void MarketApiTest()
        {
            Console.WriteLine("market api version: {0}", MarketApiWrapper.GetApiVersion());

            MarketApiWrapper mdapi = new MarketApiWrapper("", false, false);

            mdapi.RegisterSpi(new MyMarketSpi(mdapi));
            mdapi.RegisterFront(MARKET_FRONT_ADDR);

            mdapi.Init();
            mdapi.Join();
        }
Exemplo n.º 2
0
 public MyMarketSpi(MarketApiWrapper api)
 {
     api_ = api;
 }