Created
July 18, 2010 19:00
-
-
Save jcbozonier/480621 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Unite.UI | |
{ | |
/// <summary> | |
/// Interaction logic for App.xaml | |
/// </summary> | |
public partial class App : Application | |
{ | |
public App() | |
{ | |
Startup += App_Startup; | |
} | |
void App_Startup(object sender, StartupEventArgs e) | |
{ | |
var messagingPluginFinder = new MessagingPluginFinder(); | |
var messagingPlugInRepository = new MessagingPlugInRepository(messagingPluginFinder); | |
var appropriatePlugInDetection = new DetectPlugInToUseBasedOnRecipientAddress(messagingPlugInRepository); | |
var unifiedMessenger = new UnifiedMessenger(messagingPlugInRepository, appropriatePlugInDetection); | |
var contactRepository = new ContactRepository(); | |
var contactQuery = new ContactQuery(unifiedMessenger, contactRepository); | |
var messagingFiber = new AsyncFiber(this.Dispatcher); | |
var credentialRepository = new MessagingAccountCredentialRepository(messagingPlugInRepository); | |
var securityDialogService = new SecurityDialogService(credentialRepository, messagingFiber); | |
var credentialManager = new CredentialAuthorizationController(unifiedMessenger, securityDialogService); | |
var codePasteToUrlService = new CodePasteToUrlService(); | |
var automaticMessageFormatting = new AutoFormatCodePastesAsUrls(codePasteToUrlService); | |
var messageRepository = new MessageRepository(); | |
var unifiedMessagingController = new UnifiedMessagingController(unifiedMessenger, messageRepository, automaticMessageFormatting, messagingFiber); | |
var messagingViewModel = new MessagingViewModel(securityDialogService, contactQuery, unifiedMessagingController); | |
var messagingWindow = new MessagingWindow(messagingViewModel); | |
messagingWindow.Show(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment