/// <summary> /// Initializes a <see cref="TwitterCreatingTicketContext"/> /// </summary> /// <param name="context">The HTTP environment</param> /// <param name="options">The options for Twitter</param> /// <param name="userId">Twitter user ID</param> /// <param name="screenName">Twitter screen name</param> /// <param name="accessToken">Twitter access token</param> /// <param name="accessTokenSecret">Twitter access token secret</param> /// <param name="user">User details</param> public OpenStreetMapCreatingTicketContext( HttpContext context, OpenStreetMapOptions options, string userId, string screenName, string accessToken, string accessTokenSecret, JObject user) : base(context, options) { UserId = userId; ScreenName = screenName; AccessToken = accessToken; AccessTokenSecret = accessTokenSecret; User = user ?? new JObject(); }
/// <summary> /// Initializes a <see cref="BaseTwitterContext"/> /// </summary> /// <param name="context">The HTTP environment</param> /// <param name="options">The options for Twitter</param> public BaseOpenStreetMapContext(HttpContext context, OpenStreetMapOptions options) : base(context) { Options = options; }
/// <summary> /// Creates a new context object. /// </summary> /// <param name="context">The HTTP request context.</param> /// <param name="options">The Twitter middleware options.</param> /// <param name="properties">The authentication properties of the challenge.</param> /// <param name="redirectUri">The initial redirect URI.</param> public OpenStreetMapRedirectToAuthorizationEndpointContext(HttpContext context, OpenStreetMapOptions options, AuthenticationProperties properties, string redirectUri) : base(context, options) { RedirectUri = redirectUri; Properties = properties; }