C#: Remove unused hand written stubs.

This commit is contained in:
Michael Nebel
2022-08-09 15:23:43 +02:00
parent cdd1172cee
commit eb19090746
8 changed files with 0 additions and 443 deletions

View File

@@ -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()
{
}
}
}

View File

@@ -1,10 +0,0 @@
namespace Microsoft.AspNetCore.Authentication
{
public class AuthenticationBuilder
{
}
public class AuthenticationSchemeOptions
{
}
}

View File

@@ -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
{
}
}
}
}

View File

@@ -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)
{
}
}
}

View File

@@ -1,6 +0,0 @@
namespace Microsoft.AspNetCore.Hosting
{
public interface IWebHostEnvironment
{
}
}

View File

@@ -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
{
}
}
}
}

View File

@@ -1,15 +0,0 @@
using Microsoft.AspNetCore.Http;
namespace Microsoft.AspNetCore.Mvc
{
public abstract class Controller
{
public HttpResponse Response
{
get
{
throw null;
}
}
}
}

View File

@@ -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;
}
}
}