Example #1
0
 public Application(Chronos.Daemon.IApplication application)
     : base(application)
 {
     _agentClient    = new LazyValue <RequestClient>(() => new RequestClient(application.AgentClient));
     _profilingTimer = new LazyValue <IProfilingTimer>(() => new ProfilingTimer(application.ProfilingTimer.BeginProfilingTime));
     _sessionStateChangedEventSink = new RemoteEventRouter <SessionStateEventArgs>(RemoteObject, "SessionStateChanged", this);
 }
 public ConfigurationCollection(IConfigurationCollection configurations, Chronos.Host.IApplication application)
     : base(configurations)
 {
     _initialized = false;
     _application = application;
     _collection  = new Dictionary <Guid, Configuration>();
     _configurationCreatedEventSink = new RemoteEventRouter <ConfigurationEventArgs>(RemoteObject, "ConfigurationCreated", this);
     _configurationRemovedEventSink = new RemoteEventRouter <ConfigurationEventArgs>(RemoteObject, "ConfigurationRemoved", this);
 }
 public SessionCollection(ISessionCollection sessions, Chronos.Host.IApplication application)
     : base(sessions)
 {
     _initialized                  = false;
     _application                  = application;
     _collection                   = new Dictionary <Guid, Session>();
     _sessionCreatedEventSink      = new RemoteEventRouter <SessionEventArgs>(RemoteObject, "SessionCreated", this, OnRemoteSessionCreated);
     _sessionRemovedEventSink      = new RemoteEventRouter <SessionEventArgs>(RemoteObject, "SessionRemoved", this, OnRemoteSessionRemoved, OnRemoteSessionRemovedExecuted);
     _sessionStateChangedEventSink = new RemoteEventRouter <SessionEventArgs>(RemoteObject, "SessionStateChanged", this, OnRemoteSessionStateChanged);
 }
Example #4
0
 protected ChronosApplication(T remoteObject)
     : base(remoteObject)
 {
     _applicationStateChangedEventSink = new RemoteEventRouter <ApplicationStateEventArgs>(RemoteObject, "ApplicationStateChanged", this);
     _serviceContainer = new LazyValue <ServiceContainer>(() => new ServiceContainer(remoteObject.ServiceContainer));
 }