Esempio n. 1
0
        public OwinDashboardContext(
            [NotNull] JobStorage storage,
            [NotNull] DashboardOptions options,
            [NotNull] IDictionary<string, object> environment) 
            : base(storage, options)
        {
            if (environment == null) throw new ArgumentNullException(nameof(environment));

            Environment = environment;
            Request = new OwinDashboardRequest(environment);
            Response = new OwinDashboardResponse(environment);
        }
Esempio n. 2
0
        public OwinDashboardContext(
            [NotNull] JobStorage storage,
            [NotNull] DashboardOptions options,
            [NotNull] IDictionary <string, object> environment)
            : base(storage, options)
        {
            if (environment == null)
            {
                throw new ArgumentNullException(nameof(environment));
            }

            Environment = environment;
            Request     = new OwinDashboardRequest(environment);
            Response    = new OwinDashboardResponse(environment);
        }