// Method to handle requests for the value of the Version property.
        IAsyncOperation <OnboardingGetVersionResult> IOnboardingService.GetVersionAsync(AllJoynMessageInfo info)
        {
            Task <OnboardingGetVersionResult> task = new Task <OnboardingGetVersionResult>(() =>
            {
                return(OnboardingGetVersionResult.CreateSuccessResult(1));
            });

            task.Start();
            return(task.AsAsyncOperation());
        }
예제 #2
0
 public IAsyncOperation <OnboardingGetVersionResult> GetVersionAsync(AllJoynMessageInfo info)
 {
     return(Task.FromResult(OnboardingGetVersionResult.CreateSuccessResult(_onboardingInterfaceVersion)).AsAsyncOperation());
 }