/// <summary> /// Called by an application in order to initialize the application extension service. /// </summary> /// <param name="context">Provides information about the application state. </param> public void StartService(ApplicationServiceContext context) { if (DesignerProperties.IsInDesignTool) return; DateTime start = DateTime.Now; _engine = new SterlingEngine(); Current = this; }
public void StartService(ApplicationServiceContext context) { CompositionHostEx.Initialize( new AssemblyCatalog(Application.Current.GetType().Assembly), new AssemblyCatalog(typeof(Microsoft.WebAnalytics.AnalyticsEvent).Assembly), new AssemblyCatalog(typeof(GoogleAnalytics).Assembly)); }
public void StartService(ApplicationServiceContext context) { Connectivity.ServiceTestUrl = this.ServiceTestUrl; Connectivity.ServiceTimeout = this.ServiceTimeout; Connectivity.TestConnectivity(); Debug.WriteLine("test"); }
public void StartService(ApplicationServiceContext context) { CompositionHost.Initialize( new AssemblyCatalog( Application.Current.GetType().Assembly), new AssemblyCatalog(typeof (AnalyticsEvent).Assembly), new AssemblyCatalog(typeof (TrackAction).Assembly)); _innerService.StartService(context); }
/// <summary> /// 启动本地数据库服务 /// </summary> /// <param name="context">应用程序池</param> public void StartService(ApplicationServiceContext context) { if (DesignerProperties.IsInDesignTool) { return; } sengine = new SterlingEngine(); Current = this; }
public void StartService(ApplicationServiceContext context) { _engine = new SterlingEngine(); _logger = new SterlingDefaultLogger(SterlingLogLevel.Information); //Создаем локальную базу данных: LocalDataBase = new LocalDB(); Current = this; }
public void StartService(ApplicationServiceContext context) { var xap = string.Empty; if(context.ApplicationInitParams.ContainsKey(XAP_PARAM)) { xap = context.ApplicationInitParams[XAP_PARAM]; Download(xap); } Debug.WriteLine("externalXap:{0}",xap); }
internal void OnStartup(StartupEventArgs e) { // FIXME: should we be sharing the // Dictionary<string,string> for each call to // the lifetime objects? or should we be // creating a new one for each call? ApplicationServiceContext ctx = new ApplicationServiceContext(e.InitParams as Dictionary <string, string>); lifetime_objects.Close(); // it's now too late to add items to this collection for (int i = 0; i < ApplicationLifetimeObjects.Count; i++) { IApplicationService svc = ApplicationLifetimeObjects[i] as IApplicationService; if (svc != null) { svc.StartService(ctx); } } for (int i = 0; i < ApplicationLifetimeObjects.Count; i++) { IApplicationLifetimeAware asvc = ApplicationLifetimeObjects[i] as IApplicationLifetimeAware; if (asvc != null) { asvc.Starting(); } } if (Startup != null) { Startup(this, e); } for (int i = 0; i < ApplicationLifetimeObjects.Count; i++) { IApplicationLifetimeAware asvc = ApplicationLifetimeObjects[i] as IApplicationLifetimeAware; if (asvc != null) { asvc.Started(); } } }
/// <summary> /// Called by an application in order to initialize the application extension service. /// </summary> /// <param name="context">Provides information about the application state.</param> public void StartService(ApplicationServiceContext context) { TrialService.RefreshTrailMode(); }
public void StartService(ApplicationServiceContext context) { var frame = Container.Resolve<PhoneApplicationFrame>(); Application.Current.RootVisual = frame; frame.Navigating += FrameNavigating; frame.Navigated += FrameNavigated; Init(); }
/// <summary> /// Called by an application in order to initialize the application extension service. /// </summary> /// <param name="context">Provides information about the application state.</param> public void StartService(ApplicationServiceContext context) { //set the "singleton" Current = this; //get the root frame and use it for the navigation var app = Application.Current as App; if (app != null) { var frame = app.RootFrame; NavigationService = new FrameNavigationService(frame); } }
void IApplicationService.StartService(ApplicationServiceContext context) { _dispatcherTimer.Start(); }
public void StartService(ApplicationServiceContext context) { //frameworkDispatcherTimer.Start(); }
public void StartService(ApplicationServiceContext context) { // Do nothing }
/// <summary> /// Called by an application in order to initialize the application extension service. /// </summary> /// <param name="context">Provides information about the application state. </param> public void StartService(ApplicationServiceContext context) { var logLevel = LogSeverityLevel; if (context != null) { foreach (var item in context.ApplicationInitParams) { Application.Current.Resources.Add(item.Key, item.Value); } if (context.ApplicationInitParams.ContainsKey(Constants.INIT_PARAM_LOGLEVEL)) { logLevel = (LogSeverity) Enum.Parse(typeof(LogSeverity), context.ApplicationInitParams[Constants.INIT_PARAM_LOGLEVEL], true); } else if (context.ApplicationInitParams.ContainsKey(HttpUtility.UrlEncode(Constants.INIT_PARAM_LOGLEVEL))) { logLevel = (LogSeverity) Enum.Parse(typeof(LogSeverity), HttpUtility.UrlDecode(context.ApplicationInitParams[HttpUtility.UrlEncode(Constants.INIT_PARAM_LOGLEVEL)]), true); } } _mainCatalog = new AggregateCatalog(new DeploymentCatalog()); // empty one adds current deployment (xap) _container = new CompositionContainer(_mainCatalog); CompositionHost.Initialize(_container); CompositionInitializer.SatisfyImports(this); if (Logger == null) { ILogger defaultLogger = new DefaultLogger(logLevel); _container.ComposeExportedValue(defaultLogger); } else { Logger.SetSeverity(logLevel); } DeploymentService.Catalog = _mainCatalog; DeploymentService.Container = _container; _mefDebugger = new MefDebugger(_container, Logger); }
void IApplicationService.StartService(ApplicationServiceContext context) { timer.Start(); }
public void StartService(ApplicationServiceContext context) { _threadTimer = new Timer(TimerAction, null, TimeSpan.FromMilliseconds(33), TimeSpan.FromMilliseconds(33)); }
public void StartService(ApplicationServiceContext context) { _serializationService = new SerializationService(); _silverlightUnitTestAbstractionsFactory = new SilverlightUnitTestAbstractionsFactory(); _current = this; if (IsEnabled) { HtmlPage.RegisterScriptableObject("TestFrontend", this); var waitingPage = new WaitingPage(); waitingPage.Loaded += (s, e) => InvokeExternalMethod("ReadyToStart"); Application.Current.RootVisual = waitingPage; } }
public void StartService(ApplicationServiceContext context) { Current = this; }
/// <summary> /// TODO: Add summary here. /// </summary> /// <param name="context"></param> public void StartService(ApplicationServiceContext context) { if (!this.HasStarted) { this.HasStarted = true; } }
void IApplicationService.StartService(ApplicationServiceContext context) { }
internal void OnStartup (StartupEventArgs e) { // FIXME: should we be sharing the // Dictionary<string,string> for each call to // the lifetime objects? or should we be // creating a new one for each call? ApplicationServiceContext ctx = new ApplicationServiceContext (e.InitParams as Dictionary<string,string>); lifetime_objects.Close (); // it's now too late to add items to this collection for (int i = 0; i < ApplicationLifetimeObjects.Count; i++) { IApplicationService svc = ApplicationLifetimeObjects[i] as IApplicationService; if (svc != null) svc.StartService (ctx); } for (int i = 0; i < ApplicationLifetimeObjects.Count; i++) { IApplicationLifetimeAware asvc = ApplicationLifetimeObjects[i] as IApplicationLifetimeAware; if (asvc != null) asvc.Starting(); } if (Startup != null) Startup (this, e); for (int i = 0; i < ApplicationLifetimeObjects.Count; i++) { IApplicationLifetimeAware asvc = ApplicationLifetimeObjects[i] as IApplicationLifetimeAware; if (asvc != null) asvc.Started(); } }
public void StartService(ApplicationServiceContext context) { }
public void StartService(ApplicationServiceContext context) { Debug.WriteLine("LibraryContext StartSErvice"); _Current = this; }
/// <summary> /// Called by an application in order to initialize the application extension service. /// </summary> /// <param name="context">Provides information about the application state.</param> void IApplicationService.StartService(ApplicationServiceContext context) { this.frameworkDispatcherTimer.Start(); }
public void StartService(ApplicationServiceContext context) { m_ClipboardData = HtmlPage.Window.GetProperty("clipboardData") as ScriptObject; }