mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
C#: Remove unused hand written stubs.
This commit is contained in:
@@ -1,49 +0,0 @@
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using Microsoft.AspNetCore.Authentication;
|
||||
|
||||
namespace Microsoft.AspNetCore.Authentication.Cookies
|
||||
{
|
||||
public class CookieAuthenticationOptions : AuthenticationSchemeOptions
|
||||
{
|
||||
public CookieBuilder Cookie
|
||||
{
|
||||
get
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public bool CookieHttpOnly
|
||||
{
|
||||
get
|
||||
{
|
||||
return Cookie.HttpOnly;
|
||||
}
|
||||
set
|
||||
{
|
||||
Cookie.HttpOnly = value;
|
||||
}
|
||||
}
|
||||
|
||||
public CookieSecurePolicy CookieSecure
|
||||
{
|
||||
get
|
||||
{
|
||||
return Cookie.SecurePolicy;
|
||||
}
|
||||
set
|
||||
{
|
||||
Cookie.SecurePolicy = value;
|
||||
}
|
||||
}
|
||||
|
||||
public CookieAuthenticationOptions()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
namespace Microsoft.AspNetCore.Authentication
|
||||
{
|
||||
public class AuthenticationBuilder
|
||||
{
|
||||
}
|
||||
|
||||
public class AuthenticationSchemeOptions
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -1,85 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.CookiePolicy;
|
||||
|
||||
namespace Microsoft.AspNetCore.Builder
|
||||
{
|
||||
public interface IApplicationBuilder
|
||||
{
|
||||
IApplicationBuilder Use(Func<RequestDelegate, RequestDelegate> middleware);
|
||||
}
|
||||
|
||||
public class CookiePolicyOptions
|
||||
{
|
||||
public HttpOnlyPolicy HttpOnly
|
||||
{
|
||||
get
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public Action<AppendCookieContext> OnAppendCookie
|
||||
{
|
||||
get
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public Action<DeleteCookieContext> OnDeleteCookie
|
||||
{
|
||||
get
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public CookieSecurePolicy Secure
|
||||
{
|
||||
get
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static class CookiePolicyAppBuilderExtensions
|
||||
{
|
||||
public static IApplicationBuilder UseCookiePolicy(this IApplicationBuilder app)
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
|
||||
public static IApplicationBuilder UseCookiePolicy(this IApplicationBuilder app, CookiePolicyOptions options)
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
|
||||
public class SessionOptions
|
||||
{
|
||||
public CookieBuilder Cookie
|
||||
{
|
||||
get
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,143 +0,0 @@
|
||||
using Microsoft.AspNetCore.Http;
|
||||
|
||||
namespace Microsoft.AspNetCore.CookiePolicy
|
||||
{
|
||||
public enum HttpOnlyPolicy
|
||||
{
|
||||
None,
|
||||
Always
|
||||
}
|
||||
|
||||
public class AppendCookieContext
|
||||
{
|
||||
public HttpContext Context
|
||||
{
|
||||
get
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
|
||||
public string CookieName
|
||||
{
|
||||
get
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public CookieOptions CookieOptions
|
||||
{
|
||||
get
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
|
||||
public string CookieValue
|
||||
{
|
||||
get
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public bool HasConsent
|
||||
{
|
||||
get
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsConsentNeeded
|
||||
{
|
||||
get
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IssueCookie
|
||||
{
|
||||
get
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public AppendCookieContext(HttpContext context, CookieOptions options, string name, string value)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class DeleteCookieContext
|
||||
{
|
||||
public HttpContext Context
|
||||
{
|
||||
get
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
|
||||
public string CookieName
|
||||
{
|
||||
get
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public CookieOptions CookieOptions
|
||||
{
|
||||
get
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
|
||||
public bool HasConsent
|
||||
{
|
||||
get
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsConsentNeeded
|
||||
{
|
||||
get
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IssueCookie
|
||||
{
|
||||
get
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public DeleteCookieContext(HttpContext context, CookieOptions options, string name)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
namespace Microsoft.AspNetCore.Hosting
|
||||
{
|
||||
public interface IWebHostEnvironment
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -1,87 +0,0 @@
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Microsoft.AspNetCore.Http
|
||||
{
|
||||
public interface IResponseCookies
|
||||
{
|
||||
void Append(string key, string value);
|
||||
|
||||
void Append(string key, string value, CookieOptions options);
|
||||
|
||||
void Delete(string key);
|
||||
|
||||
void Delete(string key, CookieOptions options);
|
||||
}
|
||||
|
||||
public abstract class HttpResponse
|
||||
{
|
||||
public abstract IResponseCookies Cookies
|
||||
{
|
||||
get;
|
||||
}
|
||||
}
|
||||
|
||||
public class CookieOptions
|
||||
{
|
||||
public bool HttpOnly
|
||||
{
|
||||
get
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public bool Secure
|
||||
{
|
||||
get
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public delegate Task RequestDelegate(HttpContext context);
|
||||
|
||||
public abstract class HttpContext
|
||||
{
|
||||
}
|
||||
|
||||
public enum CookieSecurePolicy
|
||||
{
|
||||
SameAsRequest,
|
||||
Always,
|
||||
None
|
||||
}
|
||||
|
||||
public class CookieBuilder
|
||||
{
|
||||
public virtual bool HttpOnly
|
||||
{
|
||||
get
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public virtual CookieSecurePolicy SecurePolicy
|
||||
{
|
||||
get
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
using Microsoft.AspNetCore.Http;
|
||||
|
||||
namespace Microsoft.AspNetCore.Mvc
|
||||
{
|
||||
public abstract class Controller
|
||||
{
|
||||
public HttpResponse Response
|
||||
{
|
||||
get
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,48 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Authentication;
|
||||
using Microsoft.AspNetCore.Authentication.Cookies;
|
||||
|
||||
namespace Microsoft.Extensions.DependencyInjection
|
||||
{
|
||||
public interface IServiceCollection
|
||||
{
|
||||
}
|
||||
|
||||
public static class OptionsServiceCollectionExtensions
|
||||
{
|
||||
public static IServiceCollection Configure<TOptions>(this IServiceCollection services, Action<TOptions> configureOptions) where TOptions : class
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
|
||||
public static class AuthenticationServiceCollectionExtensions
|
||||
{
|
||||
public static AuthenticationBuilder AddAuthentication(this IServiceCollection services)
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
|
||||
public static class CookieExtensions
|
||||
{
|
||||
public static AuthenticationBuilder AddCookie(this AuthenticationBuilder builder, Action<CookieAuthenticationOptions> configureOptions)
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
|
||||
public static class SessionServiceCollectionExtensions
|
||||
{
|
||||
public static IServiceCollection AddSession(this IServiceCollection services)
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
|
||||
public static IServiceCollection AddSession(this IServiceCollection services, Action<SessionOptions> configure)
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user