Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An asynchronous operation cannot be started at this time #661

Closed
apobekiaris opened this issue Jan 18, 2020 · 3 comments
Closed

An asynchronous operation cannot be started at this time #661

apobekiaris opened this issue Jan 18, 2020 · 3 comments

Comments

@apobekiaris
Copy link
Member

Describe the bug
The exception is raised for asp.net if you try to observe .net events and you go with the default scheduler as it will schedule notification on the AspNetSynchronizationContext which may not be available at time.

To Reproduce

        public static IObservable<(IObjectSpace objectSpace,EventArgs e)> Commited(this IObservable<IObjectSpace> source) {
            return source.SelectMany(item => {
                return Observable
                    .FromEventPattern<EventHandler, EventArgs>(h => item.Committed += h, h => item.Committed -= h)
                    .TransformPattern<EventArgs, IObjectSpace>();
            });
        }

Expected behavior
Immediate scheduling of all events exposed from reactive modules is required and observables will behave like a normal dotnet event

@apobekiaris apobekiaris added Bug Reactive.XAF eXpandFrameowrk/DevExpress.XAF project ShowStopper labels Jan 18, 2020
@apobekiaris apobekiaris self-assigned this Jan 18, 2020
@apobekiaris apobekiaris added the Priority priorityissues.expandframework.com label Jan 18, 2020
@apobekiaris
Copy link
Member Author

Issue is prioritized as it contains one of the following labels sponsor, installation, contribution, nuget, breakingchange, ReproSample, Deployment, Backer, ShowStopper

@expand
Copy link
Member

expand commented Jan 18, 2020

The DevExpress.XAF repository includes commits that relate to this task:

Please update the related Nuget packages and test if issues is addressed. These are nightly nuget packages available only from our NugetServer.

If you do not use the Xpand.XAF.Modules directly but through a module of the main eXpandFramework project, please wait for the bot to notify you again when integration is finished or update the related packages manually.

Thanks a lot for your contribution.

@expand
Copy link
Member

expand commented Mar 29, 2020

Closing issue for age. Feel free to reopen it at any time.

.Thank you for your contribution.

@expand expand closed this as completed Mar 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants