mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-08-18 17:57:20 +08:00
Update release
This commit is contained in:
@@ -177,6 +177,7 @@ Closures
|
||||
{
|
||||
this->__vwsn_co0_text = ::vl::WString(L"", false);
|
||||
this->__vwsn_co_state_ = static_cast<::vl::vint>(0);
|
||||
this->__vwsn_co_state_before_pause_ = (- static_cast<::vl::vint>(1));
|
||||
this->__vwsn_prop_Failure = ::vl::Ptr<::vl::reflection::description::IValueException>();
|
||||
this->__vwsn_prop_Status = ::vl::reflection::description::CoroutineStatus::Waiting;
|
||||
}
|
||||
@@ -209,6 +210,24 @@ Closures
|
||||
try
|
||||
{
|
||||
{
|
||||
if ((__vwsn_co_state_before_pause_ != (- static_cast<::vl::vint>(1))))
|
||||
{
|
||||
if ((! static_cast<bool>(__vwsn_co_result_)))
|
||||
{
|
||||
(__vwsn_co_state_before_pause_ = (- static_cast<::vl::vint>(1)));
|
||||
}
|
||||
else if ((! static_cast<bool>(::vl::__vwsn::This(__vwsn_co_result_.Obj())->GetFailure())))
|
||||
{
|
||||
(__vwsn_co_state_before_pause_ = (- static_cast<::vl::vint>(1)));
|
||||
}
|
||||
else
|
||||
{
|
||||
{
|
||||
(__vwsn_co_state_before_pause_ = (- static_cast<::vl::vint>(1)));
|
||||
throw ::vl::Exception(::vl::__vwsn::This(::vl::__vwsn::This(__vwsn_co_result_.Obj())->GetFailure().Obj())->GetMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
while (true)
|
||||
{
|
||||
if ((__vwsn_co_state_ == static_cast<::vl::vint>(0)))
|
||||
@@ -232,6 +251,7 @@ Closures
|
||||
if ((__vwsn_co_state_ == static_cast<::vl::vint>(2)))
|
||||
{
|
||||
this->SetStatus(::vl::reflection::description::CoroutineStatus::Waiting);
|
||||
(__vwsn_co_state_before_pause_ = __vwsn_co_state_);
|
||||
(__vwsn_co_state_ = static_cast<::vl::vint>(1));
|
||||
{
|
||||
::vl::reflection::description::AsyncCoroutine::AwaitAndRead(__vwsn_co_impl_, ::vl::Ptr<::vl::reflection::description::IAsync>(::demo::IViewModel::DownloadAsync(__vwsnthis_0->ViewModel, LAMBDA(::vl_workflow_global::__vwsnf7_Demo_demo_MainWindowConstructor___vwsn_initialize_instance____Resume_(this, __vwsnthis_0)))));
|
||||
@@ -262,9 +282,9 @@ Closures
|
||||
this->__vwsn_mixin_source_ = ::vl::Ptr<::vl::reflection::description::IAsync>(__vwsnctor_future);
|
||||
}
|
||||
|
||||
bool __vwsnc2_Demo_demo_IViewModel_DownloadAsync__demo_IStringAsync::Execute(const ::vl::Func<void(::vl::Ptr<::vl::reflection::description::CoroutineResult>)>& callback)
|
||||
bool __vwsnc2_Demo_demo_IViewModel_DownloadAsync__demo_IStringAsync::Execute(const ::vl::Func<void(::vl::Ptr<::vl::reflection::description::CoroutineResult>)>& __vwsn_mixin_parameter_callback, ::vl::Ptr<::vl::reflection::description::AsyncContext> __vwsn_mixin_parameter_context)
|
||||
{
|
||||
return ::vl::__vwsn::This(__vwsn_mixin_source_.Obj())->Execute(callback);
|
||||
return ::vl::__vwsn::This(__vwsn_mixin_source_.Obj())->Execute(__vwsn_mixin_parameter_callback, __vwsn_mixin_parameter_context);
|
||||
}
|
||||
|
||||
::vl::reflection::description::AsyncStatus __vwsnc2_Demo_demo_IViewModel_DownloadAsync__demo_IStringAsync::GetStatus()
|
||||
@@ -417,6 +437,11 @@ Class (::demo::IStringAsync)
|
||||
return ::vl::__vwsn::Unbox<::vl::WString>(value);
|
||||
}
|
||||
|
||||
::vl::reflection::description::Value IStringAsync::StoreResult(const ::vl::WString& value)
|
||||
{
|
||||
return ::vl::__vwsn::Box(value);
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
Class (::demo::IViewModel)
|
||||
***********************************************************************/
|
||||
|
||||
@@ -106,6 +106,7 @@ namespace demo
|
||||
#endif
|
||||
public:
|
||||
static ::vl::WString CastResult(const ::vl::reflection::description::Value& value);
|
||||
static ::vl::reflection::description::Value StoreResult(const ::vl::WString& value);
|
||||
};
|
||||
|
||||
class IViewModel : public virtual ::vl::reflection::IDescriptable, public ::vl::reflection::Description<IViewModel>
|
||||
@@ -234,6 +235,7 @@ Closures
|
||||
|
||||
::vl::WString __vwsn_co0_text;
|
||||
::vl::vint __vwsn_co_state_ = 0;
|
||||
::vl::vint __vwsn_co_state_before_pause_ = 0;
|
||||
::vl::Ptr<::vl::reflection::description::IValueException> __vwsn_prop_Failure;
|
||||
::vl::Ptr<::vl::reflection::description::IValueException> GetFailure() override;
|
||||
void SetFailure(::vl::Ptr<::vl::reflection::description::IValueException> __vwsn_value_);
|
||||
@@ -249,7 +251,7 @@ Closures
|
||||
__vwsnc2_Demo_demo_IViewModel_DownloadAsync__demo_IStringAsync(::vl::Ptr<::vl::reflection::description::IFuture> __vwsnctor_future);
|
||||
|
||||
::vl::Ptr<::vl::reflection::description::IAsync> __vwsn_mixin_source_;
|
||||
bool Execute(const ::vl::Func<void(::vl::Ptr<::vl::reflection::description::CoroutineResult>)>& callback) override;
|
||||
bool Execute(const ::vl::Func<void(::vl::Ptr<::vl::reflection::description::CoroutineResult>)>& __vwsn_mixin_parameter_callback, ::vl::Ptr<::vl::reflection::description::AsyncContext> __vwsn_mixin_parameter_context) override;
|
||||
::vl::reflection::description::AsyncStatus GetStatus() override;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@ namespace vl
|
||||
#define _ ,
|
||||
BEGIN_INTERFACE_MEMBER(::demo::IStringAsync)
|
||||
CLASS_MEMBER_STATIC_METHOD(CastResult, { L"value" })
|
||||
CLASS_MEMBER_STATIC_METHOD(StoreResult, { L"value" })
|
||||
END_INTERFACE_MEMBER(::demo::IStringAsync)
|
||||
|
||||
BEGIN_INTERFACE_MEMBER(::demo::IViewModel)
|
||||
|
||||
Reference in New Issue
Block a user