public void Simple() { var service = new GetRegistrationService { RequestBuilder = ServerRequestBuilder.Instance }; var request = new GetRegistrationRequest {PushId = "AndroidPushId"}; service.Execute(request, Callback, ExceptionHandler.Handle); }
public void Simple() { var service = new GetRegistrationService { RequestBuilder = RequestBuilderHelper.Build() }; var helper = new AsyncTestHelper<GetRegistrationResponse>(); var request = new GetRegistrationRequest { PushId = RemoteSettings.AndroidPushId }; service.Execute(request, helper.Callback, helper.HandleException); helper.Wait(); }