Cocoa Dev
Cocoa Dev

Reputation: 9541

What does AsynchronousExit() do?

Here's the code that I am referring to:

public partial class SplashScreen : Window
{
    public SplashScreen()
    {
        InitializeComponent();

        BitmapImage splashScreenImageSource = new BitmapImage();
        splashScreenImageSource.BeginInit();
        splashScreenImageSource.UriSource = 
            new Uri("Resources/world_splash.jpg", UriKind.Relative);
        splashScreenImageSource.EndInit();

        splashScreenImage.Source = splashScreenImageSource;
    }

    public void AsynchronousExit()
    {
        BackgroundWorker worker = new BackgroundWorker();
        worker.DoWork += new DoWorkEventHandler(worker_DoWork);
        worker.RunWorkerCompleted += 
            new RunWorkerCompletedEventHandler(worker_RunWorkerCompleted);
        worker.RunWorkerAsync();
    }

Does AsynchronousExit ever get called? I'm not sure if AsynchronousExit is some sort of .NET Service that runs if code if available or if it needs to be called explicitly.

Upvotes: 1

Views: 46

Answers (1)

casperOne
casperOne

Reputation: 74560

The way you defined it, it does nothing; it's a method you wrote that the framework has no knowledge of.

If it's getting called, it's because you called it or you told the framework to call it. However, there is nothing that the framework is doing with this; a search for ".NET AsynchronousExit" doesn't return anything relevant or that something like this even exists in the framework.

Upvotes: 2

Related Questions