public void Run() { var rt = new RunTime <object>(Guid.NewGuid().ToString()); //Can't Test deeper? Assert.That(() => rt.Run(), Throws.TypeOf <FabricConnectionDeniedException>()); }
/// <summary> /// This is the entry point of the service host process. /// </summary> private static void Main() { try { var rt = new RunTime<Service>("FactoryType"); rt.Run(); } catch (Exception e) { ServiceEventSource.Current.ServiceHostInitializationFailed(e.ToString()); throw; } }
public void RunScript() { if (RunTime.CurrentFrame >= RunTime.MaxFrame - 1) { RunTime.SetFrame(0); } //RunTime.LoadSubactionScripts(); //RunTime.ResetSubactionVariables(); //RunTime.SetFrame(RunTime.CurrentFrame); //Run the timer. //This will run scripts and animations until the user stops it or everything ends itself. //Then the code directly after this line will be executed. RunTime.Run(); //If we have any sounds still playing, stop and dispose of them. //This should only be necessary if the user manually stops the timer, //as the timer will not stop automatically until all sounds are completed and disposed of. if (RunTime._playingSounds.Count != 0) { List <int> keys = new List <int>(); foreach (var b in RunTime._playingSounds) { foreach (AudioInfo info in b.Value) { if (info._buffer != null && info._buffer.Owner != null) { info._buffer.Stop(); info._buffer.Dispose(); info._stream.Dispose(); } } } RunTime._playingSounds.Clear(); } }
public void Run() { var rt = new RunTime<object>(Guid.NewGuid().ToString()); //Can't Test deeper? Assert.That(() => rt.Run(), Throws.TypeOf<FabricConnectionDeniedException>()); }