Exemplo n.º 1
0
        public void ReadCache(float position)
        {
            AsyncCaller  asynctask   = new AsyncCaller(filemanager.ReadGPSCache);
            IAsyncResult asyncresult = asynctask.BeginInvoke(position, null, null);

            CacheData2 = asynctask.EndInvoke(asyncresult);
            reading    = false;
            returned   = true;
        }
Exemplo n.º 2
0
        public bool StartAsynchronousCall(AsyncCaller caller, Object input)
        {
            m_output = null;
            AsyncCaller callDelegate = new AsyncCaller(caller);
            // Asynchronously invoke the Factorize method.
            Object        output   = null;
            AsyncCallback callBack = new AsyncCallback(this.GetResultsCallback);
            //Object temp = null;
            IAsyncResult result = callDelegate.BeginInvoke(
                input,
                out output,
                callBack, callDelegate);

            return(true);
        }
Exemplo n.º 3
0
        public IAsyncResult BeginIntToString(int integer, AsyncCallback callback = null)
        {
            AsyncCaller caller = new AsyncCaller(IntToString);

            return(caller.BeginInvoke(integer, callback, this));
        }
Exemplo n.º 4
0
 public void ReadCache(float position)
 {
     AsyncCaller asynctask = new AsyncCaller(filemanager.ReadGPSCache);
     IAsyncResult asyncresult = asynctask.BeginInvoke(position, null, null);
     CacheData2 = asynctask.EndInvoke(asyncresult);
     reading = false;
     returned = true;
 }
Exemplo n.º 5
0
        public static void PostAsyc()
        {
            AsyncCaller caller = new AsyncCaller(Foo);

            caller.BeginInvoke(1000, new AsyncCallback(FooCallBack), caller);
        }