Example #1
0
        internal ProxyService( INetworkFacadeFactory factory, ICoreSettings settings, IAccessLog accessLog )
        {
            Contract.Requires( factory != null );
            Contract.Requires(settings!=null);
            Contract.Requires(accessLog!=null);

            _accessLog = accessLog;
            _factory = factory;
            _settings = settings;
        }
Example #2
0
        public SessionContext( ISessionStateRegistry registry, INetworkFacadeFactory factory )
        {
            Contract.Requires( registry != null );
            Contract.Requires( factory != null );

            _registry = registry;
            _facadeFactory = factory;

            ChangeState( SessionStateType.Uninitialized );
            Id = Guid.NewGuid().ToString();
            LastNetworkActivity = DateTime.Now;
            HttpPipelineDepth = 0;
            _remoteHostRegistry = new RemoteHostRegistry();

            ServiceLog.Logger.Verbose( "Creating session context {0}", Id );
        }
Example #3
0
        public ClientSession( IServerDispatcher dispatcher, INetworkFacadeFactory facadeFactory, IAccessLog accessLog )
        {
            Contract.Requires( dispatcher != null );
            Contract.Requires( facadeFactory != null );
            Contract.Requires( accessLog != null );

            ServiceLog.Logger.Verbose( "{0} ClientSession -- constructor", Id );

            _facadeFactory = facadeFactory;
            _accessLog = accessLog;

            //_sendingDataToClientLock = new ManualResetEvent(true);
            _id = Guid.NewGuid().ToString();
            _dispatcher = dispatcher;
            _dispatcher.SessionId = Id;
            _dispatcher.FatalErrorOccurred += _dispatcher_FatalErrorOccurred;
            _dispatcher.PartialDataAvailable += _dispatcher_PartialDataAvailable;
            _dispatcher.ReadResponseHeaderComplete += _dispatcher_ReadResponseHeaderComplete;
            _dispatcher.AllServersInactive += _dispatcher_AllServersInactive;
            _dispatcher.EmptyPipeline += _dispatcher_EmptyPipeline;
        }
Example #4
0
        public HttpsState( INetworkFacadeFactory factory )
        {
            Contract.Requires( factory != null );

            ServiceLog.Logger.Info( "Creating new HTTPS state object" );
        }
 public SessionStateRegistry( IProxyFilter filter, INetworkFacadeFactory factory )
 {
     // TODO: figure out this error. Cannot compose part 'Gallatin.Core.Service.SessionState.ClientConnectingState' because a cycle exists in the dependencies between the exports being composed.
     // For now, force the dependencies to be resolved
 }