Permalink
Browse files

m,

  • Loading branch information...
1 parent 5ee1cf3 commit d35b169934e0249ff59db57753a376ffb759f24a Steven Houben committed Aug 25, 2012
Showing with 3 additions and 5 deletions.
  1. +3 −5 NooSphere/NooSphere.ActivitySystem/Context/ContextMonitor.cs
View
8 NooSphere/NooSphere.ActivitySystem/Context/ContextMonitor.cs
@@ -38,13 +38,11 @@ public class ContextMonitor
#region Constructor
public ContextMonitor(Dictionary<Guid,IContextService> services =null)
{
- if (services == null)
- Services = new Dictionary<Guid, IContextService>();
- else
- Services = services;
+ Services = services ?? new Dictionary<Guid, IContextService>();
Running = false;
}
+
public void Start()
{
Tasks = new List<Task>(Services.Count);
@@ -88,7 +86,7 @@ public void RemoveContextService(Guid id)
}
#endregion
- #region Private Members
+ #region Event Handler
private void ContextServiceDataReceived(object sender, DataEventArgs e)
{
if (DataReceived != null)

0 comments on commit d35b169

Please sign in to comment.