コード例 #1
0
ファイル: App.xaml.cs プロジェクト: shukanov-artyom/VTS
        protected override void OnStartup(StartupEventArgs e)
        {
            AppDomain.CurrentDomain.UnhandledException += CurrentDomainUnhandledException;
            base.OnStartup(e);
            TranslationManager.Instance.TranslationProvider =
                new ResxTranslationProvider("Agent.Localization.Resources.Resources",
                                            Assembly.GetAssembly(typeof(TranslateExtension)));
            RollingFileAppender.SetLogPath(Path.Combine(Directory.GetCurrentDirectory(), "Agent.log"));
            Log.Info(String.Format("VTS Agent {0} has been started.", ApplicationVersion.Current.VersionString));
            IDictionary <Type, Type> dict = new Dictionary <Type, Type>();

            dict.Add(typeof(IVtsWebService), typeof(VtsWebServiceClient));
            Container.Initialize(dict);
        }