mirror of https://github.com/grpc/grpc.git
Merge pull request #17778 from jtattermusch/csharp_api_split
Move public types needed for server implementation to Grpc.Core.Apipull/17890/head
commit
906c12568e
40 changed files with 269 additions and 33 deletions
@ -0,0 +1,2 @@ |
||||
bin |
||||
obj |
@ -0,0 +1,63 @@ |
||||
#region Copyright notice and license |
||||
|
||||
// Copyright 2019 The gRPC Authors |
||||
// |
||||
// Licensed under the Apache License, Version 2.0 (the "License"); |
||||
// you may not use this file except in compliance with the License. |
||||
// You may obtain a copy of the License at |
||||
// |
||||
// http://www.apache.org/licenses/LICENSE-2.0 |
||||
// |
||||
// Unless required by applicable law or agreed to in writing, software |
||||
// distributed under the License is distributed on an "AS IS" BASIS, |
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
// See the License for the specific language governing permissions and |
||||
// limitations under the License. |
||||
|
||||
#endregion |
||||
|
||||
using System.Reflection; |
||||
using System.Runtime.CompilerServices; |
||||
|
||||
[assembly: AssemblyTitle("Grpc.Core.Api")] |
||||
[assembly: AssemblyDescription("")] |
||||
[assembly: AssemblyConfiguration("")] |
||||
[assembly: AssemblyCompany("")] |
||||
[assembly: AssemblyProduct("")] |
||||
[assembly: AssemblyCopyright("Google Inc. All rights reserved.")] |
||||
[assembly: AssemblyTrademark("")] |
||||
[assembly: AssemblyCulture("")] |
||||
|
||||
#if SIGNED |
||||
[assembly: InternalsVisibleTo("Grpc.Core,PublicKey=" + |
||||
"00240000048000009400000006020000002400005253413100040000010001002f5797a92c6fcde81bd4098f43" + |
||||
"0442bb8e12768722de0b0cb1b15e955b32a11352740ee59f2c94c48edc8e177d1052536b8ac651bce11ce5da3a" + |
||||
"27fc95aff3dc604a6971417453f9483c7b5e836756d5b271bf8f2403fe186e31956148c03d804487cf642f8cc0" + |
||||
"71394ee9672dfe5b55ea0f95dfd5a7f77d22c962ccf51320d3")] |
||||
[assembly: InternalsVisibleTo("Grpc.Core.Tests,PublicKey=" + |
||||
"00240000048000009400000006020000002400005253413100040000010001002f5797a92c6fcde81bd4098f43" + |
||||
"0442bb8e12768722de0b0cb1b15e955b32a11352740ee59f2c94c48edc8e177d1052536b8ac651bce11ce5da3a" + |
||||
"27fc95aff3dc604a6971417453f9483c7b5e836756d5b271bf8f2403fe186e31956148c03d804487cf642f8cc0" + |
||||
"71394ee9672dfe5b55ea0f95dfd5a7f77d22c962ccf51320d3")] |
||||
[assembly: InternalsVisibleTo("Grpc.Core.Testing,PublicKey=" + |
||||
"00240000048000009400000006020000002400005253413100040000010001002f5797a92c6fcde81bd4098f43" + |
||||
"0442bb8e12768722de0b0cb1b15e955b32a11352740ee59f2c94c48edc8e177d1052536b8ac651bce11ce5da3a" + |
||||
"27fc95aff3dc604a6971417453f9483c7b5e836756d5b271bf8f2403fe186e31956148c03d804487cf642f8cc0" + |
||||
"71394ee9672dfe5b55ea0f95dfd5a7f77d22c962ccf51320d3")] |
||||
[assembly: InternalsVisibleTo("Grpc.IntegrationTesting,PublicKey=" + |
||||
"00240000048000009400000006020000002400005253413100040000010001002f5797a92c6fcde81bd4098f43" + |
||||
"0442bb8e12768722de0b0cb1b15e955b32a11352740ee59f2c94c48edc8e177d1052536b8ac651bce11ce5da3a" + |
||||
"27fc95aff3dc604a6971417453f9483c7b5e836756d5b271bf8f2403fe186e31956148c03d804487cf642f8cc0" + |
||||
"71394ee9672dfe5b55ea0f95dfd5a7f77d22c962ccf51320d3")] |
||||
[assembly: InternalsVisibleTo("Grpc.Microbenchmarks,PublicKey=" + |
||||
"00240000048000009400000006020000002400005253413100040000010001002f5797a92c6fcde81bd4098f43" + |
||||
"0442bb8e12768722de0b0cb1b15e955b32a11352740ee59f2c94c48edc8e177d1052536b8ac651bce11ce5da3a" + |
||||
"27fc95aff3dc604a6971417453f9483c7b5e836756d5b271bf8f2403fe186e31956148c03d804487cf642f8cc0" + |
||||
"71394ee9672dfe5b55ea0f95dfd5a7f77d22c962ccf51320d3")] |
||||
#else |
||||
[assembly: InternalsVisibleTo("Grpc.Core")] |
||||
[assembly: InternalsVisibleTo("Grpc.Core.Tests")] |
||||
[assembly: InternalsVisibleTo("Grpc.Core.Testing")] |
||||
[assembly: InternalsVisibleTo("Grpc.IntegrationTesting")] |
||||
[assembly: InternalsVisibleTo("Grpc.Microbenchmarks")] |
||||
#endif |
@ -0,0 +1,56 @@ |
||||
#region Copyright notice and license |
||||
|
||||
// Copyright 2019 The gRPC Authors |
||||
// |
||||
// Licensed under the Apache License, Version 2.0 (the "License"); |
||||
// you may not use this file except in compliance with the License. |
||||
// You may obtain a copy of the License at |
||||
// |
||||
// http://www.apache.org/licenses/LICENSE-2.0 |
||||
// |
||||
// Unless required by applicable law or agreed to in writing, software |
||||
// distributed under the License is distributed on an "AS IS" BASIS, |
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
// See the License for the specific language governing permissions and |
||||
// limitations under the License. |
||||
|
||||
#endregion |
||||
|
||||
using System.Runtime.CompilerServices; |
||||
using Grpc.Core; |
||||
using Grpc.Core.Logging; |
||||
using Grpc.Core.Utils; |
||||
|
||||
// API types that used to be in Grpc.Core package, but were moved to Grpc.Core.Api |
||||
// https://docs.microsoft.com/en-us/dotnet/framework/app-domains/type-forwarding-in-the-common-language-runtime |
||||
|
||||
// TODO(jtattermusch): move types needed for implementing a client |
||||
// TODO(jtattermusch): ServerServiceDefinition depends on IServerCallHandler (which depends on other stuff) |
||||
|
||||
[assembly:TypeForwardedToAttribute(typeof(ILogger))] |
||||
[assembly:TypeForwardedToAttribute(typeof(LogLevel))] |
||||
[assembly:TypeForwardedToAttribute(typeof(GrpcPreconditions))] |
||||
[assembly:TypeForwardedToAttribute(typeof(AuthContext))] |
||||
[assembly:TypeForwardedToAttribute(typeof(ContextPropagationOptions))] |
||||
[assembly:TypeForwardedToAttribute(typeof(ContextPropagationToken))] |
||||
[assembly:TypeForwardedToAttribute(typeof(DeserializationContext))] |
||||
[assembly:TypeForwardedToAttribute(typeof(IAsyncStreamReader<>))] |
||||
[assembly:TypeForwardedToAttribute(typeof(IAsyncStreamWriter<>))] |
||||
[assembly:TypeForwardedToAttribute(typeof(IServerStreamWriter<>))] |
||||
[assembly:TypeForwardedToAttribute(typeof(Marshaller<>))] |
||||
[assembly:TypeForwardedToAttribute(typeof(Marshallers))] |
||||
[assembly:TypeForwardedToAttribute(typeof(Metadata))] |
||||
[assembly:TypeForwardedToAttribute(typeof(MethodType))] |
||||
[assembly:TypeForwardedToAttribute(typeof(IMethod))] |
||||
[assembly:TypeForwardedToAttribute(typeof(Method<,>))] |
||||
[assembly:TypeForwardedToAttribute(typeof(RpcException))] |
||||
[assembly:TypeForwardedToAttribute(typeof(SerializationContext))] |
||||
[assembly:TypeForwardedToAttribute(typeof(ServerCallContext))] |
||||
[assembly:TypeForwardedToAttribute(typeof(UnaryServerMethod<,>))] |
||||
[assembly:TypeForwardedToAttribute(typeof(ClientStreamingServerMethod<,>))] |
||||
[assembly:TypeForwardedToAttribute(typeof(ServerStreamingServerMethod<,>))] |
||||
[assembly:TypeForwardedToAttribute(typeof(DuplexStreamingServerMethod<,>))] |
||||
[assembly:TypeForwardedToAttribute(typeof(Status))] |
||||
[assembly:TypeForwardedToAttribute(typeof(StatusCode))] |
||||
[assembly:TypeForwardedToAttribute(typeof(WriteOptions))] |
||||
[assembly:TypeForwardedToAttribute(typeof(WriteFlags))] |
@ -0,0 +1,10 @@ |
||||
fileFormatVersion: 2 |
||||
guid: 9b4ba511bab164bf9a5d0db8bb681b05 |
||||
folderAsset: yes |
||||
timeCreated: 1531219385 |
||||
licenseType: Free |
||||
DefaultImporter: |
||||
externalObjects: {} |
||||
userData: |
||||
assetBundleName: |
||||
assetBundleVariant: |
@ -0,0 +1,10 @@ |
||||
fileFormatVersion: 2 |
||||
guid: 21a3894045fc74e85a09ab84c0e35c3a |
||||
folderAsset: yes |
||||
timeCreated: 1531219385 |
||||
licenseType: Free |
||||
DefaultImporter: |
||||
externalObjects: {} |
||||
userData: |
||||
assetBundleName: |
||||
assetBundleVariant: |
@ -0,0 +1,10 @@ |
||||
fileFormatVersion: 2 |
||||
guid: 9fd1c7cd7b6ed4d5285de90a332fb93e |
||||
folderAsset: yes |
||||
timeCreated: 1531219385 |
||||
licenseType: Free |
||||
DefaultImporter: |
||||
externalObjects: {} |
||||
userData: |
||||
assetBundleName: |
||||
assetBundleVariant: |
@ -0,0 +1,32 @@ |
||||
fileFormatVersion: 2 |
||||
guid: c9bf7237d50ec4e99ba7d2c153b80e8f |
||||
timeCreated: 1531219386 |
||||
licenseType: Free |
||||
PluginImporter: |
||||
externalObjects: {} |
||||
serializedVersion: 2 |
||||
iconMap: {} |
||||
executionOrder: {} |
||||
isPreloaded: 0 |
||||
isOverridable: 0 |
||||
platformData: |
||||
- first: |
||||
Any: |
||||
second: |
||||
enabled: 1 |
||||
settings: {} |
||||
- first: |
||||
Editor: Editor |
||||
second: |
||||
enabled: 0 |
||||
settings: |
||||
DefaultValueInitialized: true |
||||
- first: |
||||
Windows Store Apps: WindowsStoreApps |
||||
second: |
||||
enabled: 0 |
||||
settings: |
||||
CPU: AnyCPU |
||||
userData: |
||||
assetBundleName: |
||||
assetBundleVariant: |
@ -0,0 +1,9 @@ |
||||
fileFormatVersion: 2 |
||||
guid: bf384c9cae7a648c488af0193b3e74c0 |
||||
timeCreated: 1531219385 |
||||
licenseType: Free |
||||
DefaultImporter: |
||||
externalObjects: {} |
||||
userData: |
||||
assetBundleName: |
||||
assetBundleVariant: |
@ -0,0 +1,9 @@ |
||||
fileFormatVersion: 2 |
||||
guid: 0a4fb8823a783423880c9d8c9d3b5cf4 |
||||
timeCreated: 1531219386 |
||||
licenseType: Free |
||||
TextScriptImporter: |
||||
externalObjects: {} |
||||
userData: |
||||
assetBundleName: |
||||
assetBundleVariant: |
Loading…
Reference in new issue