Inside MainForm.cs I'm initializing couple of things (IBookRepository and IDocumentStore). 

```
private IDocumentStore _store = new EmbeddableDocumentStore {RunInMemory = false };
private IBookRepository _repository;
public MainForm()
{
    InitializeComponent();
    _store.Initialize();
    _repository = new RavenDbBookRepository(_store);
}

```

since embeddable document store takes a while (5,6 sec) to init I want to move it's initialization on separate thread

so I tried 

```
 private void InitOnNewThread()
    {
        _store.Initialize();
        _repository = new RavenDbBookRepository(_Store);            
    }

public MainForm()
{
    InitializeComponent();
    Thread t = new Thread(new ThreadStart(InitOnNewThread));
    t.Start();
}

```

but using this \_repository is null inside main thread, cause is populated in separate thread.

Since this is first time I trying to work with thread I don't see how to overcome this.\

How would you do it?