public Session(ISession session, Chronos.Host.IApplication application) : base(session) { _application = application; _serviceContainer = new LazyValue <ServiceContainer>(() => new ServiceContainer(RemoteObject.ServiceContainer)); Uid = Execute(() => RemoteObject.Uid); }
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); }
public Configuration(IConfiguration configuration, Chronos.Host.IApplication application) : base(configuration) { _application = application; Uid = Execute(() => RemoteObject.Uid); }