Skip to content

Commit e0ca7fa

Browse files
committed
Fill in missing internal types 1 of n
- rename Microsoft.AspNetCore.Components.netstandard2.0.Manual.cs; need `RenderTreeFrame` type everywhere - add types needed in unit and perf tests to *.Manual.cs files
1 parent d7351e1 commit e0ca7fa

File tree

47 files changed

+2209
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+2209
-2
lines changed
Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
// Copyright (c) .NET Foundation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3+
4+
namespace Microsoft.AspNetCore.Antiforgery
5+
{
6+
internal partial class AntiforgeryFeature : Microsoft.AspNetCore.Antiforgery.IAntiforgeryFeature
7+
{
8+
public AntiforgeryFeature() { }
9+
public Microsoft.AspNetCore.Antiforgery.AntiforgeryToken CookieToken { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
10+
public bool HaveDeserializedCookieToken { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
11+
public bool HaveDeserializedRequestToken { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
12+
public bool HaveGeneratedNewCookieToken { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
13+
public bool HaveStoredNewCookieToken { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
14+
public Microsoft.AspNetCore.Antiforgery.AntiforgeryToken NewCookieToken { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
15+
public string NewCookieTokenString { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
16+
public Microsoft.AspNetCore.Antiforgery.AntiforgeryToken NewRequestToken { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
17+
public string NewRequestTokenString { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
18+
public Microsoft.AspNetCore.Antiforgery.AntiforgeryToken RequestToken { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
19+
}
20+
21+
internal partial class AntiforgerySerializationContext
22+
{
23+
public AntiforgerySerializationContext() { }
24+
public System.IO.BinaryReader Reader { get { throw null; } }
25+
public System.Security.Cryptography.SHA256 Sha256 { get { throw null; } }
26+
public System.IO.MemoryStream Stream { get { throw null; } }
27+
public System.IO.BinaryWriter Writer { get { throw null; } }
28+
public char[] GetChars(int count) { throw null; }
29+
public void Reset() { }
30+
}
31+
32+
internal partial class AntiforgerySerializationContextPooledObjectPolicy : Microsoft.Extensions.ObjectPool.IPooledObjectPolicy<Microsoft.AspNetCore.Antiforgery.AntiforgerySerializationContext>
33+
{
34+
public AntiforgerySerializationContextPooledObjectPolicy() { }
35+
public Microsoft.AspNetCore.Antiforgery.AntiforgerySerializationContext Create() { throw null; }
36+
public bool Return(Microsoft.AspNetCore.Antiforgery.AntiforgerySerializationContext obj) { throw null; }
37+
}
38+
39+
internal sealed partial class AntiforgeryToken
40+
{
41+
internal const int ClaimUidBitLength = 256;
42+
internal const int SecurityTokenBitLength = 128;
43+
public AntiforgeryToken() { }
44+
public string AdditionalData { get { throw null; } set { } }
45+
public Microsoft.AspNetCore.Antiforgery.BinaryBlob ClaimUid { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
46+
public bool IsCookieToken { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
47+
public Microsoft.AspNetCore.Antiforgery.BinaryBlob SecurityToken { get { throw null; } set { } }
48+
public string Username { get { throw null; } set { } }
49+
}
50+
51+
[System.Diagnostics.DebuggerDisplayAttribute("{DebuggerString}")]
52+
internal sealed partial class BinaryBlob : System.IEquatable<Microsoft.AspNetCore.Antiforgery.BinaryBlob>
53+
{
54+
public BinaryBlob(int bitLength) { }
55+
public BinaryBlob(int bitLength, byte[] data) { }
56+
public int BitLength { get { throw null; } }
57+
public bool Equals(Microsoft.AspNetCore.Antiforgery.BinaryBlob other) { throw null; }
58+
public override bool Equals(object obj) { throw null; }
59+
public byte[] GetData() { throw null; }
60+
public override int GetHashCode() { throw null; }
61+
}
62+
63+
internal partial class DefaultAntiforgery : Microsoft.AspNetCore.Antiforgery.IAntiforgery
64+
{
65+
public DefaultAntiforgery(Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Antiforgery.AntiforgeryOptions> antiforgeryOptionsAccessor, Microsoft.AspNetCore.Antiforgery.IAntiforgeryTokenGenerator tokenGenerator, Microsoft.AspNetCore.Antiforgery.IAntiforgeryTokenSerializer tokenSerializer, Microsoft.AspNetCore.Antiforgery.IAntiforgeryTokenStore tokenStore, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) { }
66+
public Microsoft.AspNetCore.Antiforgery.AntiforgeryTokenSet GetAndStoreTokens(Microsoft.AspNetCore.Http.HttpContext httpContext) { throw null; }
67+
public Microsoft.AspNetCore.Antiforgery.AntiforgeryTokenSet GetTokens(Microsoft.AspNetCore.Http.HttpContext httpContext) { throw null; }
68+
[System.Diagnostics.DebuggerStepThroughAttribute]
69+
public System.Threading.Tasks.Task<bool> IsRequestValidAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) { throw null; }
70+
public void SetCookieTokenAndHeader(Microsoft.AspNetCore.Http.HttpContext httpContext) { }
71+
protected virtual void SetDoNotCacheHeaders(Microsoft.AspNetCore.Http.HttpContext httpContext) { }
72+
[System.Diagnostics.DebuggerStepThroughAttribute]
73+
public System.Threading.Tasks.Task ValidateRequestAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) { throw null; }
74+
}
75+
76+
internal partial class DefaultAntiforgeryTokenGenerator : Microsoft.AspNetCore.Antiforgery.IAntiforgeryTokenGenerator
77+
{
78+
public DefaultAntiforgeryTokenGenerator(Microsoft.AspNetCore.Antiforgery.IClaimUidExtractor claimUidExtractor, Microsoft.AspNetCore.Antiforgery.IAntiforgeryAdditionalDataProvider additionalDataProvider) { }
79+
public Microsoft.AspNetCore.Antiforgery.AntiforgeryToken GenerateCookieToken() { throw null; }
80+
public Microsoft.AspNetCore.Antiforgery.AntiforgeryToken GenerateRequestToken(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Antiforgery.AntiforgeryToken cookieToken) { throw null; }
81+
public bool IsCookieTokenValid(Microsoft.AspNetCore.Antiforgery.AntiforgeryToken cookieToken) { throw null; }
82+
public bool TryValidateTokenSet(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Antiforgery.AntiforgeryToken cookieToken, Microsoft.AspNetCore.Antiforgery.AntiforgeryToken requestToken, out string message) { throw null; }
83+
}
84+
85+
internal partial class DefaultAntiforgeryTokenSerializer : Microsoft.AspNetCore.Antiforgery.IAntiforgeryTokenSerializer
86+
{
87+
public DefaultAntiforgeryTokenSerializer(Microsoft.AspNetCore.DataProtection.IDataProtectionProvider provider, Microsoft.Extensions.ObjectPool.ObjectPool<Microsoft.AspNetCore.Antiforgery.AntiforgerySerializationContext> pool) { }
88+
public Microsoft.AspNetCore.Antiforgery.AntiforgeryToken Deserialize(string serializedToken) { throw null; }
89+
public string Serialize(Microsoft.AspNetCore.Antiforgery.AntiforgeryToken token) { throw null; }
90+
}
91+
92+
internal partial class DefaultAntiforgeryTokenStore : Microsoft.AspNetCore.Antiforgery.IAntiforgeryTokenStore
93+
{
94+
public DefaultAntiforgeryTokenStore(Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Antiforgery.AntiforgeryOptions> optionsAccessor) { }
95+
public string GetCookieToken(Microsoft.AspNetCore.Http.HttpContext httpContext) { throw null; }
96+
[System.Diagnostics.DebuggerStepThroughAttribute]
97+
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Antiforgery.AntiforgeryTokenSet> GetRequestTokensAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) { throw null; }
98+
public void SaveCookieToken(Microsoft.AspNetCore.Http.HttpContext httpContext, string token) { }
99+
}
100+
101+
internal partial class DefaultClaimUidExtractor : Microsoft.AspNetCore.Antiforgery.IClaimUidExtractor
102+
{
103+
public DefaultClaimUidExtractor(Microsoft.Extensions.ObjectPool.ObjectPool<Microsoft.AspNetCore.Antiforgery.AntiforgerySerializationContext> pool) { }
104+
public string ExtractClaimUid(System.Security.Claims.ClaimsPrincipal claimsPrincipal) { throw null; }
105+
public static System.Collections.Generic.IList<string> GetUniqueIdentifierParameters(System.Collections.Generic.IEnumerable<System.Security.Claims.ClaimsIdentity> claimsIdentities) { throw null; }
106+
}
107+
108+
internal partial interface IAntiforgeryFeature
109+
{
110+
Microsoft.AspNetCore.Antiforgery.AntiforgeryToken CookieToken { get; set; }
111+
bool HaveDeserializedCookieToken { get; set; }
112+
bool HaveDeserializedRequestToken { get; set; }
113+
bool HaveGeneratedNewCookieToken { get; set; }
114+
bool HaveStoredNewCookieToken { get; set; }
115+
Microsoft.AspNetCore.Antiforgery.AntiforgeryToken NewCookieToken { get; set; }
116+
string NewCookieTokenString { get; set; }
117+
Microsoft.AspNetCore.Antiforgery.AntiforgeryToken NewRequestToken { get; set; }
118+
string NewRequestTokenString { get; set; }
119+
Microsoft.AspNetCore.Antiforgery.AntiforgeryToken RequestToken { get; set; }
120+
}
121+
122+
internal partial interface IAntiforgeryTokenGenerator
123+
{
124+
Microsoft.AspNetCore.Antiforgery.AntiforgeryToken GenerateCookieToken();
125+
Microsoft.AspNetCore.Antiforgery.AntiforgeryToken GenerateRequestToken(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Antiforgery.AntiforgeryToken cookieToken);
126+
bool IsCookieTokenValid(Microsoft.AspNetCore.Antiforgery.AntiforgeryToken cookieToken);
127+
bool TryValidateTokenSet(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Antiforgery.AntiforgeryToken cookieToken, Microsoft.AspNetCore.Antiforgery.AntiforgeryToken requestToken, out string message);
128+
}
129+
130+
internal partial interface IAntiforgeryTokenSerializer
131+
{
132+
Microsoft.AspNetCore.Antiforgery.AntiforgeryToken Deserialize(string serializedToken);
133+
string Serialize(Microsoft.AspNetCore.Antiforgery.AntiforgeryToken token);
134+
}
135+
136+
internal partial interface IAntiforgeryTokenStore
137+
{
138+
string GetCookieToken(Microsoft.AspNetCore.Http.HttpContext httpContext);
139+
System.Threading.Tasks.Task<Microsoft.AspNetCore.Antiforgery.AntiforgeryTokenSet> GetRequestTokensAsync(Microsoft.AspNetCore.Http.HttpContext httpContext);
140+
void SaveCookieToken(Microsoft.AspNetCore.Http.HttpContext httpContext, string token);
141+
}
142+
143+
internal partial interface IClaimUidExtractor
144+
{
145+
string ExtractClaimUid(System.Security.Claims.ClaimsPrincipal claimsPrincipal);
146+
}
147+
}

src/Antiforgery/ref/Microsoft.AspNetCore.Antiforgery.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
</PropertyGroup>
66
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.0'">
77
<Compile Include="Microsoft.AspNetCore.Antiforgery.netcoreapp3.0.cs" />
8+
<Compile Include="Microsoft.AspNetCore.Antiforgery.Manual.cs" />
89
<Compile Include="../src/Properties/AssemblyInfo.cs" />
910
<Reference Include="Microsoft.AspNetCore.DataProtection" />
1011
<Reference Include="Microsoft.AspNetCore.Http.Abstractions" />
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77

88
namespace Microsoft.AspNetCore.Components.RenderTree
99
{
10+
public readonly partial struct RenderTreeDiff
11+
{
12+
internal RenderTreeDiff(int componentId, Microsoft.AspNetCore.Components.RenderTree.ArrayBuilderSegment<Microsoft.AspNetCore.Components.RenderTree.RenderTreeEdit> entries) { throw null; }
13+
}
14+
1015
// https://github.com/dotnet/arcade/pull/2033
1116
[StructLayout(LayoutKind.Explicit, Pack = 4)]
1217
public readonly partial struct RenderTreeFrame

src/Components/Components/ref/Microsoft.AspNetCore.Components.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</PropertyGroup>
66
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
77
<Compile Include="Microsoft.AspNetCore.Components.netstandard2.0.cs" />
8-
<Compile Include="Microsoft.AspNetCore.Components.netstandard2.0.Manual.cs" />
8+
<Compile Include="Microsoft.AspNetCore.Components.Manual.cs" />
99
<Compile Include="../src/Properties/AssemblyInfo.cs" />
1010
<Reference Include="Microsoft.Extensions.Logging.Abstractions" />
1111
<Reference Include="Microsoft.Extensions.DependencyInjection.Abstractions" />
@@ -14,6 +14,7 @@
1414
</ItemGroup>
1515
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.0'">
1616
<Compile Include="Microsoft.AspNetCore.Components.netcoreapp3.0.cs" />
17+
<Compile Include="Microsoft.AspNetCore.Components.Manual.cs" />
1718
<Compile Include="../src/Properties/AssemblyInfo.cs" />
1819
<Reference Include="Microsoft.Extensions.Logging.Abstractions" />
1920
<Reference Include="Microsoft.Extensions.DependencyInjection.Abstractions" />
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Copyright (c) .NET Foundation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3+
4+
namespace Microsoft.AspNetCore.DataProtection.Abstractions
5+
{
6+
internal static partial class Resources
7+
{
8+
internal static string CryptCommon_GenericError { get { throw null; } }
9+
internal static string CryptCommon_PayloadInvalid { get { throw null; } }
10+
internal static System.Globalization.CultureInfo Culture
11+
{
12+
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; }
13+
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { }
14+
}
15+
16+
internal static string DataProtectionExtensions_NoService { get { throw null; } }
17+
internal static string DataProtectionExtensions_NullPurposesCollection { get { throw null; } }
18+
internal static System.Resources.ResourceManager ResourceManager { get { throw null; } }
19+
internal static string FormatDataProtectionExtensions_NoService(object p0) { throw null; }
20+
21+
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
22+
internal static string GetResourceString(string resourceKey, string defaultValue = null) { throw null; }
23+
}
24+
}

src/DataProtection/Abstractions/ref/Microsoft.AspNetCore.DataProtection.Abstractions.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
</PropertyGroup>
66
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
77
<Compile Include="Microsoft.AspNetCore.DataProtection.Abstractions.netstandard2.0.cs" />
8+
<Compile Include="Microsoft.AspNetCore.DataProtection.Abstractions.Manual.cs" />
89
<Compile Include="../src/Properties/AssemblyInfo.cs" />
910
</ItemGroup>
1011
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Copyright (c) .NET Foundation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3+
4+
namespace Microsoft.AspNetCore.Cryptography.KeyDerivation.PBKDF2
5+
{
6+
internal partial interface IPbkdf2Provider
7+
{
8+
byte[] DeriveKey(string password, byte[] salt, Microsoft.AspNetCore.Cryptography.KeyDerivation.KeyDerivationPrf prf, int iterationCount, int numBytesRequested);
9+
}
10+
11+
internal sealed partial class ManagedPbkdf2Provider : Microsoft.AspNetCore.Cryptography.KeyDerivation.PBKDF2.IPbkdf2Provider
12+
{
13+
public ManagedPbkdf2Provider() { }
14+
public byte[] DeriveKey(string password, byte[] salt, Microsoft.AspNetCore.Cryptography.KeyDerivation.KeyDerivationPrf prf, int iterationCount, int numBytesRequested) { throw null; }
15+
}
16+
17+
internal sealed partial class Win7Pbkdf2Provider : Microsoft.AspNetCore.Cryptography.KeyDerivation.PBKDF2.IPbkdf2Provider
18+
{
19+
public Win7Pbkdf2Provider() { }
20+
public byte[] DeriveKey(string password, byte[] salt, Microsoft.AspNetCore.Cryptography.KeyDerivation.KeyDerivationPrf prf, int iterationCount, int numBytesRequested) { throw null; }
21+
}
22+
23+
internal sealed partial class Win8Pbkdf2Provider : Microsoft.AspNetCore.Cryptography.KeyDerivation.PBKDF2.IPbkdf2Provider
24+
{
25+
public Win8Pbkdf2Provider() { }
26+
public byte[] DeriveKey(string password, byte[] salt, Microsoft.AspNetCore.Cryptography.KeyDerivation.KeyDerivationPrf prf, int iterationCount, int numBytesRequested) { throw null; }
27+
}
28+
}

src/DataProtection/Cryptography.KeyDerivation/ref/Microsoft.AspNetCore.Cryptography.KeyDerivation.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@
55
</PropertyGroup>
66
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
77
<Compile Include="Microsoft.AspNetCore.Cryptography.KeyDerivation.netstandard2.0.cs" />
8+
<Compile Include="Microsoft.AspNetCore.Cryptography.KeyDerivation.Manual.cs" />
89
<Compile Include="../src/Properties/AssemblyInfo.cs" />
910
<Reference Include="Microsoft.AspNetCore.Cryptography.Internal" />
1011
</ItemGroup>
1112
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp2.0'">
1213
<Compile Include="Microsoft.AspNetCore.Cryptography.KeyDerivation.netcoreapp2.0.cs" />
14+
<Compile Include="Microsoft.AspNetCore.Cryptography.KeyDerivation.Manual.cs" />
15+
<Compile Include="Microsoft.AspNetCore.Cryptography.KeyDerivation.netcoreapp2.0.Manual.cs" />
1316
<Compile Include="../src/Properties/AssemblyInfo.cs" />
1417
<Reference Include="Microsoft.AspNetCore.Cryptography.Internal" />
1518
</ItemGroup>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Copyright (c) .NET Foundation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3+
4+
namespace Microsoft.AspNetCore.Cryptography.KeyDerivation.PBKDF2
5+
{
6+
internal sealed partial class NetCorePbkdf2Provider : Microsoft.AspNetCore.Cryptography.KeyDerivation.PBKDF2.IPbkdf2Provider
7+
{
8+
public NetCorePbkdf2Provider() { }
9+
public byte[] DeriveKey(string password, byte[] salt, Microsoft.AspNetCore.Cryptography.KeyDerivation.KeyDerivationPrf prf, int iterationCount, int numBytesRequested) { throw null; }
10+
}
11+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Copyright (c) .NET Foundation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3+
4+
namespace Microsoft.AspNetCore.JsonPatch
5+
{
6+
public partial class JsonPatchDocument<TModel> : Microsoft.AspNetCore.JsonPatch.IJsonPatchDocument where TModel : class
7+
{
8+
internal string GetPath<TProp>(System.Linq.Expressions.Expression<System.Func<TModel, TProp>> expr, string position) { throw null; }
9+
}
10+
}

src/Features/JsonPatch/ref/Microsoft.AspNetCore.JsonPatch.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
</PropertyGroup>
66
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
77
<Compile Include="Microsoft.AspNetCore.JsonPatch.netstandard2.0.cs" />
8+
<Compile Include="Microsoft.AspNetCore.JsonPatch.Manual.cs" />
89
<Compile Include="../src/Properties/AssemblyInfo.cs" />
910
<Reference Include="Microsoft.CSharp" />
1011
<Reference Include="Newtonsoft.Json" />
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Copyright (c) .NET Foundation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3+
4+
namespace Microsoft.AspNetCore.Hosting.WindowsServices
5+
{
6+
public partial class WebHostService : System.ServiceProcess.ServiceBase
7+
{
8+
internal void Start() { }
9+
}
10+
}

src/Hosting/WindowsServices/ref/Microsoft.AspNetCore.Hosting.WindowsServices.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
</PropertyGroup>
66
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.0'">
77
<Compile Include="Microsoft.AspNetCore.Hosting.WindowsServices.netcoreapp3.0.cs" />
8+
<Compile Include="Microsoft.AspNetCore.Hosting.WindowsServices.Manual.cs" />
89
<Compile Include="../src/Properties/AssemblyInfo.cs" />
910
<Reference Include="Microsoft.AspNetCore.Hosting" />
1011
<Reference Include="System.ServiceProcess.ServiceController" />

0 commit comments

Comments
 (0)