Exemplo n.º 1
0
    public MobiledgeXIntegration()
    {
        pIntegration = new PlatformIntegration();
        me           = new MatchingEngine();

        // Set the platform specific way to get SIM carrier information.
        me.carrierInfo = pIntegration;
    }
Exemplo n.º 2
0
    public MobiledgeXIntegration()
    {
        // Set the platform specific way to get SIM carrier information.
        pIntegration = new PlatformIntegration();

        // Platform integration needs to initialize first:
        me = new MatchingEngine(pIntegration.CarrierInfo, pIntegration.NetInterface, pIntegration.UniqueID);

        // Optional NetTesting.
        netTest = new NetTest(me);
    }
Exemplo n.º 3
0
    // Get the ephemerial carriername from device specific properties.
    public string getCurrentCarrierName()
    {
        // Call whenever network provider changes, but the demo app pointed to mexdemo server
        // won't need to track the carrier. The demo requires TDG:
        var    Platform = new PlatformIntegration();
        string cn       = Platform.GetCurrentCarrierName();

        Debug.Log("Inspection only: Platform carrierName is [" + cn + "]");


        // Just return default for MexSample:
        return(carrierName);
    }
Exemplo n.º 4
0
    public MobiledgeXIntegration()
    {
        // Set the platform specific way to get SIM carrier information.
        pIntegration = new PlatformIntegration();

        // The following is to allow Get{TCP, TLS, UDP}Connection APIs to return the configured
        // edge network path to your MobiledgeX AppInsts. Other connections will use the system
        // default network route.
        NetInterface netInterface = new SimpleNetInterface(pIntegration.NetworkInterfaceName);

        // Platform integration needs to initialize first:
        me = new MatchingEngine(pIntegration, netInterface);

        // Optional NetTesting.
        netTest = new NetTest(me);
    }