コード例 #1
0
        public void continueWithTest()
        {
            byte[] data     = new byte[100];
            string filename = "continueWithTest.data";

            StorageReference storageReference = mAGCStorageManagement.getStorageReference(filename);
            UploadTask       task             = storageReference.putBytes(data, new FileMetadata());

            task.continueWith(new MyExecutor("continueWithTestExecutor"),
                              new MyContinuation("MyExecutor&MyContinuation"));
            task.continueWith(new MyContinuation("MyContinuation"));
            task.continueWithTask(new MyContinuation("MyContinuation&Task"));
            task.continueWithTask(new MyExecuteResult("continueWithTestExecuteResult"));
            task.continueWithTask(new MyExecutor("continueWithTestExecutor&Task"),
                                  new MyContinuation("MyExecutor&MyContinuation&Task"));

            task.onSuccessTask(new MyExecutor("onSuccessTask"), new MySuccessContinuation("onSuccessTask"));
            task.onSuccessTask(new MySuccessContinuation("onSuccessTaskSingle"));

            Debug.Log("continueWithTest Success");
        }