public void RenderGame() { Host = new AndroidGameHost(this); Host.ExceptionThrown += handleException; Host.Run(game); HostStarted.Invoke(Host); }
protected override void OnHostStarted() { HostStarted?.Invoke(this, EventArgs.Empty); base.OnHostStarted(); _logger.ScriptHostStarted(_stopwatch.ElapsedMilliseconds); }
protected override void OnHostStarted() { HostStarted?.Invoke(this, EventArgs.Empty); base.OnHostStarted(); _logger.ScriptHostStarted((long)_stopwatch.GetElapsedTime().TotalMilliseconds); }
public void LogEvent(MetricEvent metricEvent) { HostStarted hostStartedEvent = metricEvent as HostStarted; if (hostStartedEvent != null) { _metricsEventManager.HostStarted(hostStartedEvent.Host); } }
protected override void OnHostStarted() { HostStarted?.Invoke(this, EventArgs.Empty); base.OnHostStarted(); string message = $"Host started ({_stopwatch.ElapsedMilliseconds}ms)"; _logger.LogInformation(message); }
public override void OnStartHost() { //Base handling base.OnStartHost(); //Just fire the event if (HostStarted != null) { HostStarted.Invoke(); } }
[SetUp] public void setup() { WCFHost_Start(); if (HostStarted.isFalse()) { Assert.Ignore("Neet to set the security protection for binding WCF address into Port"); } // need to find a better solution or a way to automate the setup // references:http://blogs.msdn.com/b/paulwh/archive/2007/05/04/addressaccessdeniedexception-http-could-not-register-url-http-8080.aspx // http://stackoverflow.com/questions/885744/wcf-servicehost-access-rights // when running inside VisualStudio we can use the Design_Time_Addresses trick }
internal void OnHostStarted(int pid, string commandLine) { HostStarted?.Invoke(this, new HostStartedEventArgs(pid, commandLine)); }
/// <summary> /// Event invocator for when a host is started /// </summary> protected virtual void OnHostStarted() { HostStarted?.Invoke(this, new HostStartedEventArgs()); }