Initial Client/Server Communication
#1 Followed the MagicOnion quickstart guide, borrowing code from the chat sample app to get something working
This commit is contained in:
parent
52b0d4d8ff
commit
a0c8dbee72
493 changed files with 57790 additions and 3 deletions
8
Assets/Plugins.meta
Normal file
8
Assets/Plugins.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 90833898188c49d46afaf79612689387
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Plugins/Editor.meta
Normal file
8
Assets/Plugins/Editor.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1829d9a4a1359de47bda1a7f40ce3d04
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Plugins/Google.Protobuf.meta
Normal file
8
Assets/Plugins/Google.Protobuf.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 4b6ebd913ac610041b63fc847ee96302
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Plugins/Google.Protobuf/lib.meta
Normal file
8
Assets/Plugins/Google.Protobuf/lib.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e4ab5b3f8a676a84a9eb3ffcf1e8138d
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Plugins/Google.Protobuf/lib/net45.meta
Normal file
8
Assets/Plugins/Google.Protobuf/lib/net45.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 4c50e24955a9a294b99ad097ae2e252a
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Plugins/Google.Protobuf/lib/net45/Google.Protobuf.dll
(Stored with Git LFS)
Normal file
BIN
Assets/Plugins/Google.Protobuf/lib/net45/Google.Protobuf.dll
(Stored with Git LFS)
Normal file
Binary file not shown.
|
|
@ -0,0 +1,30 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 286edf5aec6aae64697e5e8b7ab9b60e
|
||||
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:
|
||||
10
Assets/Plugins/Grpc.Core.Api.meta
Normal file
10
Assets/Plugins/Grpc.Core.Api.meta
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 9b4ba511bab164bf9a5d0db8bb681b05
|
||||
folderAsset: yes
|
||||
timeCreated: 1531219385
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
10
Assets/Plugins/Grpc.Core.Api/lib.meta
Normal file
10
Assets/Plugins/Grpc.Core.Api/lib.meta
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 21a3894045fc74e85a09ab84c0e35c3a
|
||||
folderAsset: yes
|
||||
timeCreated: 1531219385
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
10
Assets/Plugins/Grpc.Core.Api/lib/net45.meta
Normal file
10
Assets/Plugins/Grpc.Core.Api/lib/net45.meta
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 9fd1c7cd7b6ed4d5285de90a332fb93e
|
||||
folderAsset: yes
|
||||
timeCreated: 1531219385
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Plugins/Grpc.Core.Api/lib/net45/Grpc.Core.Api.dll
(Stored with Git LFS)
Normal file
BIN
Assets/Plugins/Grpc.Core.Api/lib/net45/Grpc.Core.Api.dll
(Stored with Git LFS)
Normal file
Binary file not shown.
|
|
@ -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:
|
||||
2539
Assets/Plugins/Grpc.Core.Api/lib/net45/Grpc.Core.Api.xml
Normal file
2539
Assets/Plugins/Grpc.Core.Api/lib/net45/Grpc.Core.Api.xml
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,9 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0a4fb8823a783423880c9d8c9d3b5cf4
|
||||
timeCreated: 1531219386
|
||||
licenseType: Free
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
10
Assets/Plugins/Grpc.Core.meta
Normal file
10
Assets/Plugins/Grpc.Core.meta
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e28eaddc034fe664591e93e8816968aa
|
||||
folderAsset: yes
|
||||
timeCreated: 1531219385
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
10
Assets/Plugins/Grpc.Core/lib.meta
Normal file
10
Assets/Plugins/Grpc.Core/lib.meta
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1f862d451f11a2442aeac99ad2827285
|
||||
folderAsset: yes
|
||||
timeCreated: 1531219385
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
10
Assets/Plugins/Grpc.Core/lib/net45.meta
Normal file
10
Assets/Plugins/Grpc.Core/lib/net45.meta
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 89bdbe2a1282d4e40ba11e96b1481d09
|
||||
folderAsset: yes
|
||||
timeCreated: 1531219385
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Plugins/Grpc.Core/lib/net45/Grpc.Core.dll
(Stored with Git LFS)
Normal file
BIN
Assets/Plugins/Grpc.Core/lib/net45/Grpc.Core.dll
(Stored with Git LFS)
Normal file
Binary file not shown.
32
Assets/Plugins/Grpc.Core/lib/net45/Grpc.Core.dll.meta
Normal file
32
Assets/Plugins/Grpc.Core/lib/net45/Grpc.Core.dll.meta
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 63fdcd70d29d1dc49b4e61e22a9e96e1
|
||||
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:
|
||||
2183
Assets/Plugins/Grpc.Core/lib/net45/Grpc.Core.xml
Normal file
2183
Assets/Plugins/Grpc.Core/lib/net45/Grpc.Core.xml
Normal file
File diff suppressed because it is too large
Load diff
9
Assets/Plugins/Grpc.Core/lib/net45/Grpc.Core.xml.meta
Normal file
9
Assets/Plugins/Grpc.Core/lib/net45/Grpc.Core.xml.meta
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ec9cf7702008ac648af0687c05064f78
|
||||
timeCreated: 1531219386
|
||||
licenseType: Free
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
10
Assets/Plugins/Grpc.Core/runtimes.meta
Normal file
10
Assets/Plugins/Grpc.Core/runtimes.meta
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 643bdb9ca01174f4eb77e3e15f8324b3
|
||||
folderAsset: yes
|
||||
timeCreated: 1531219385
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
10
Assets/Plugins/Grpc.Core/runtimes/android.meta
Normal file
10
Assets/Plugins/Grpc.Core/runtimes/android.meta
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f7f79be62cf24a940be0211dab5d2e5e
|
||||
folderAsset: yes
|
||||
timeCreated: 1531220113
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Plugins/Grpc.Core/runtimes/android/arm64-v8a.meta
Normal file
8
Assets/Plugins/Grpc.Core/runtimes/android/arm64-v8a.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 47ba39f5fad6b49c5aae011940e9eea2
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
|
@ -0,0 +1,102 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e1f44cc7ecd4244448817ccae6de42a3
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
platformData:
|
||||
- first:
|
||||
'': Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 0
|
||||
Exclude Editor: 1
|
||||
Exclude Linux: 1
|
||||
Exclude Linux64: 1
|
||||
Exclude LinuxUniversal: 1
|
||||
Exclude OSXUniversal: 1
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 1
|
||||
Exclude iOS: 1
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: ARM64
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DefaultValueInitialized: true
|
||||
OS: AnyOS
|
||||
- first:
|
||||
Facebook: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Facebook: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Linux
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86_64
|
||||
- first:
|
||||
Standalone: LinuxUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
iPhone: iOS
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
AddToEmbeddedBinaries: false
|
||||
CompileFlags:
|
||||
FrameworkDependencies:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
10
Assets/Plugins/Grpc.Core/runtimes/android/armeabi-v7a.meta
Normal file
10
Assets/Plugins/Grpc.Core/runtimes/android/armeabi-v7a.meta
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: de2aa4d10bc38f54fb8345aca9b21195
|
||||
folderAsset: yes
|
||||
timeCreated: 1531220167
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
|
@ -0,0 +1,102 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 04fe0e4dcf310416b991e57c99e5d55f
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
platformData:
|
||||
- first:
|
||||
'': Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 0
|
||||
Exclude Editor: 1
|
||||
Exclude Linux: 1
|
||||
Exclude Linux64: 1
|
||||
Exclude LinuxUniversal: 1
|
||||
Exclude OSXUniversal: 1
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 1
|
||||
Exclude iOS: 1
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: ARMv7
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DefaultValueInitialized: true
|
||||
OS: AnyOS
|
||||
- first:
|
||||
Facebook: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Facebook: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Linux
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86_64
|
||||
- first:
|
||||
Standalone: LinuxUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
iPhone: iOS
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
AddToEmbeddedBinaries: false
|
||||
CompileFlags:
|
||||
FrameworkDependencies:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Plugins/Grpc.Core/runtimes/android/x86.meta
Normal file
8
Assets/Plugins/Grpc.Core/runtimes/android/x86.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 800ab3aa15d1b49b19df1caf1315bd3e
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
|
@ -0,0 +1,102 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 245e3d515096b414fbcdd1fd4160161a
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
platformData:
|
||||
- first:
|
||||
'': Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 0
|
||||
Exclude Editor: 1
|
||||
Exclude Linux: 1
|
||||
Exclude Linux64: 1
|
||||
Exclude LinuxUniversal: 1
|
||||
Exclude OSXUniversal: 1
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 1
|
||||
Exclude iOS: 1
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DefaultValueInitialized: true
|
||||
OS: AnyOS
|
||||
- first:
|
||||
Facebook: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Facebook: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Linux
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86_64
|
||||
- first:
|
||||
Standalone: LinuxUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
iPhone: iOS
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
AddToEmbeddedBinaries: false
|
||||
CompileFlags:
|
||||
FrameworkDependencies:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
436
Assets/Plugins/Grpc.Core/runtimes/grpc_csharp_ext_dummy_stubs.c
Normal file
436
Assets/Plugins/Grpc.Core/runtimes/grpc_csharp_ext_dummy_stubs.c
Normal file
|
|
@ -0,0 +1,436 @@
|
|||
|
||||
// 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.
|
||||
|
||||
// When building for Unity Android with il2cpp backend, Unity tries to link
|
||||
// the __Internal PInvoke definitions (which are required by iOS) even though
|
||||
// the .so/.dll will be actually used. This file provides dummy stubs to
|
||||
// make il2cpp happy.
|
||||
// See https://github.com/grpc/grpc/issues/16012
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
void grpcsharp_init() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_shutdown() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_version_string() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_batch_context_create() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_batch_context_recv_initial_metadata() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_batch_context_recv_message_length() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_batch_context_recv_message_next_slice_peek() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_batch_context_recv_status_on_client_status() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_batch_context_recv_status_on_client_details() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_batch_context_recv_status_on_client_trailing_metadata() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_batch_context_recv_close_on_server_cancelled() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_batch_context_reset() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_batch_context_destroy() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_request_call_context_create() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_request_call_context_call() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_request_call_context_method() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_request_call_context_host() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_request_call_context_deadline() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_request_call_context_request_metadata() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_request_call_context_reset() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_request_call_context_destroy() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_composite_call_credentials_create() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_call_credentials_release() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_call_cancel() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_call_cancel_with_status() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_call_start_unary() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_call_start_client_streaming() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_call_start_server_streaming() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_call_start_duplex_streaming() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_call_send_message() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_call_send_close_from_client() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_call_send_status_from_server() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_call_recv_message() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_call_recv_initial_metadata() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_call_start_serverside() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_call_send_initial_metadata() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_call_set_credentials() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_call_get_peer() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_call_destroy() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_channel_args_create() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_channel_args_set_string() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_channel_args_set_integer() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_channel_args_destroy() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_override_default_ssl_roots() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_ssl_credentials_create() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_composite_channel_credentials_create() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_channel_credentials_release() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_insecure_channel_create() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_secure_channel_create() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_channel_create_call() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_channel_check_connectivity_state() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_channel_watch_connectivity_state() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_channel_get_target() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_channel_destroy() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_sizeof_grpc_event() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_completion_queue_create_async() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_completion_queue_create_sync() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_completion_queue_shutdown() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_completion_queue_next() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_completion_queue_pluck() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_completion_queue_destroy() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void gprsharp_free() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_metadata_array_create() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_metadata_array_add() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_metadata_array_count() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_metadata_array_get_key() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_metadata_array_get_value() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_metadata_array_destroy_full() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_redirect_log() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_native_callback_dispatcher_init() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_metadata_credentials_create_from_plugin() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_metadata_credentials_notify_from_plugin() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_ssl_server_credentials_create() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_server_credentials_release() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_server_create() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_server_register_completion_queue() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_server_add_insecure_http2_port() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_server_add_secure_http2_port() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_server_start() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_server_request_call() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_server_cancel_all_calls() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_server_shutdown_and_notify_callback() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_server_destroy() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_call_auth_context() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_auth_context_peer_identity_property_name() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_auth_context_property_iterator() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_auth_property_iterator_next() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_auth_context_release() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_slice_buffer_create() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_slice_buffer_adjust_tail_space() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_slice_buffer_slice_count() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_slice_buffer_slice_peek() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_slice_buffer_reset_and_unref() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_slice_buffer_destroy() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void gprsharp_now() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void gprsharp_inf_future() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void gprsharp_inf_past() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void gprsharp_convert_clock_type() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void gprsharp_sizeof_timespec() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_test_callback() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_test_nop() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_test_override_method() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
void grpcsharp_test_call_start_unary_echo() {
|
||||
fprintf(stderr, "Should never reach here");
|
||||
abort();
|
||||
}
|
||||
|
|
@ -0,0 +1,93 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 576b78662f1f8af4fa751f709b620f52
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
platformData:
|
||||
- first:
|
||||
'': Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 0
|
||||
Exclude Editor: 1
|
||||
Exclude Linux: 1
|
||||
Exclude Linux64: 1
|
||||
Exclude LinuxUniversal: 1
|
||||
Exclude OSXUniversal: 1
|
||||
Exclude Win: 0
|
||||
Exclude Win64: 0
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: ARMv7
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DefaultValueInitialized: true
|
||||
OS: AnyOS
|
||||
- first:
|
||||
Facebook: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Facebook: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Linux
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: LinuxUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
10
Assets/Plugins/Grpc.Core/runtimes/ios.meta
Normal file
10
Assets/Plugins/Grpc.Core/runtimes/ios.meta
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a5f54f019e6510541ac61eeec96aa82d
|
||||
folderAsset: yes
|
||||
timeCreated: 1531456012
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Plugins/Grpc.Core/runtimes/ios/libgrpc.a
(Stored with Git LFS)
Normal file
BIN
Assets/Plugins/Grpc.Core/runtimes/ios/libgrpc.a
(Stored with Git LFS)
Normal file
Binary file not shown.
95
Assets/Plugins/Grpc.Core/runtimes/ios/libgrpc.a.meta
Normal file
95
Assets/Plugins/Grpc.Core/runtimes/ios/libgrpc.a.meta
Normal file
|
|
@ -0,0 +1,95 @@
|
|||
fileFormatVersion: 2
|
||||
guid: dde9f75258bae4033a4f778fd1149ccd
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
platformData:
|
||||
- first:
|
||||
'': Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Editor: 1
|
||||
Exclude Linux: 1
|
||||
Exclude Linux64: 1
|
||||
Exclude LinuxUniversal: 1
|
||||
Exclude OSXUniversal: 1
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 1
|
||||
Exclude iOS: 0
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DefaultValueInitialized: true
|
||||
OS: AnyOS
|
||||
- first:
|
||||
Facebook: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Facebook: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Linux
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86_64
|
||||
- first:
|
||||
Standalone: LinuxUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
iPhone: iOS
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
AddToEmbeddedBinaries: false
|
||||
CompileFlags:
|
||||
FrameworkDependencies:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Plugins/Grpc.Core/runtimes/ios/libgrpc_csharp_ext.a
(Stored with Git LFS)
Normal file
BIN
Assets/Plugins/Grpc.Core/runtimes/ios/libgrpc_csharp_ext.a
(Stored with Git LFS)
Normal file
Binary file not shown.
117
Assets/Plugins/Grpc.Core/runtimes/ios/libgrpc_csharp_ext.a.meta
Normal file
117
Assets/Plugins/Grpc.Core/runtimes/ios/libgrpc_csharp_ext.a.meta
Normal file
|
|
@ -0,0 +1,117 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 83f99c0e7db71754ba8927bbfb83c668
|
||||
timeCreated: 1531456013
|
||||
licenseType: Pro
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
platformData:
|
||||
- first:
|
||||
'': Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 1
|
||||
Exclude Editor: 1
|
||||
Exclude Linux: 1
|
||||
Exclude Linux64: 1
|
||||
Exclude LinuxUniversal: 1
|
||||
Exclude OSXIntel: 1
|
||||
Exclude OSXIntel64: 1
|
||||
Exclude OSXUniversal: 1
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 1
|
||||
Exclude iOS: 0
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: ARMv7
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DefaultValueInitialized: true
|
||||
OS: AnyOS
|
||||
- first:
|
||||
Facebook: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Facebook: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Linux
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86_64
|
||||
- first:
|
||||
Standalone: LinuxUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXIntel
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: OSXIntel64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
iPhone: iOS
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CompileFlags:
|
||||
FrameworkDependencies:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
10
Assets/Plugins/Grpc.Core/runtimes/linux.meta
Normal file
10
Assets/Plugins/Grpc.Core/runtimes/linux.meta
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1ff40de7dc502c14e8893c7679e9f44a
|
||||
folderAsset: yes
|
||||
timeCreated: 1531219385
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
10
Assets/Plugins/Grpc.Core/runtimes/linux/x64.meta
Normal file
10
Assets/Plugins/Grpc.Core/runtimes/linux/x64.meta
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 08ccfdbfbd8d2d6458eb44d41a7b0b0a
|
||||
folderAsset: yes
|
||||
timeCreated: 1531219385
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
|
@ -0,0 +1,117 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c176dc12f2803e14bb37bcd0ba4a0718
|
||||
timeCreated: 1531219386
|
||||
licenseType: Free
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
platformData:
|
||||
- first:
|
||||
'': Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 1
|
||||
Exclude Editor: 0
|
||||
Exclude Linux: 1
|
||||
Exclude Linux64: 0
|
||||
Exclude LinuxUniversal: 0
|
||||
Exclude OSXIntel: 1
|
||||
Exclude OSXIntel64: 1
|
||||
Exclude OSXUniversal: 1
|
||||
Exclude Win: 0
|
||||
Exclude Win64: 0
|
||||
Exclude iOS: 1
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: ARMv7
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86_64
|
||||
DefaultValueInitialized: true
|
||||
OS: Linux
|
||||
- first:
|
||||
Facebook: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Facebook: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Linux
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86_64
|
||||
- first:
|
||||
Standalone: LinuxUniversal
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86_64
|
||||
- first:
|
||||
Standalone: OSXIntel
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXIntel64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
iPhone: iOS
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CompileFlags:
|
||||
FrameworkDependencies:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
10
Assets/Plugins/Grpc.Core/runtimes/linux/x86.meta
Normal file
10
Assets/Plugins/Grpc.Core/runtimes/linux/x86.meta
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: d62d998e3cdebd542a967743103c64b6
|
||||
folderAsset: yes
|
||||
timeCreated: 1531219385
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
|
@ -0,0 +1,117 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0165d78fa73d0cc4c8984f3d4f2a6c86
|
||||
timeCreated: 1531219386
|
||||
licenseType: Free
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
platformData:
|
||||
- first:
|
||||
'': Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 1
|
||||
Exclude Editor: 0
|
||||
Exclude Linux: 0
|
||||
Exclude Linux64: 1
|
||||
Exclude LinuxUniversal: 0
|
||||
Exclude OSXIntel: 1
|
||||
Exclude OSXIntel64: 1
|
||||
Exclude OSXUniversal: 1
|
||||
Exclude Win: 0
|
||||
Exclude Win64: 0
|
||||
Exclude iOS: 1
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: ARMv7
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86
|
||||
DefaultValueInitialized: true
|
||||
OS: Linux
|
||||
- first:
|
||||
Facebook: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Facebook: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Linux
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: LinuxUniversal
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86
|
||||
- first:
|
||||
Standalone: OSXIntel
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXIntel64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
iPhone: iOS
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CompileFlags:
|
||||
FrameworkDependencies:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
10
Assets/Plugins/Grpc.Core/runtimes/osx.meta
Normal file
10
Assets/Plugins/Grpc.Core/runtimes/osx.meta
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 7b1ebe888da0a174c95a712766d2558c
|
||||
folderAsset: yes
|
||||
timeCreated: 1531219385
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
10
Assets/Plugins/Grpc.Core/runtimes/osx/x64.meta
Normal file
10
Assets/Plugins/Grpc.Core/runtimes/osx/x64.meta
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ccea531b15a71974a91329186dd65075
|
||||
folderAsset: yes
|
||||
timeCreated: 1531219385
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Plugins/Grpc.Core/runtimes/osx/x64/grpc_csharp_ext.bundle
(Stored with Git LFS)
Normal file
BIN
Assets/Plugins/Grpc.Core/runtimes/osx/x64/grpc_csharp_ext.bundle
(Stored with Git LFS)
Normal file
Binary file not shown.
|
|
@ -0,0 +1,117 @@
|
|||
fileFormatVersion: 2
|
||||
guid: da53c729add26524fbecb84a7b599289
|
||||
timeCreated: 1531219386
|
||||
licenseType: Free
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
platformData:
|
||||
- first:
|
||||
'': Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 1
|
||||
Exclude Editor: 0
|
||||
Exclude Linux: 1
|
||||
Exclude Linux64: 1
|
||||
Exclude LinuxUniversal: 1
|
||||
Exclude OSXIntel: 1
|
||||
Exclude OSXIntel64: 0
|
||||
Exclude OSXUniversal: 0
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 1
|
||||
Exclude iOS: 1
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: ARMv7
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86_64
|
||||
DefaultValueInitialized: true
|
||||
OS: OSX
|
||||
- first:
|
||||
Facebook: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Facebook: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Linux
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86_64
|
||||
- first:
|
||||
Standalone: LinuxUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXIntel
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXIntel64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86_64
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
iPhone: iOS
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CompileFlags:
|
||||
FrameworkDependencies:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
10
Assets/Plugins/Grpc.Core/runtimes/osx/x86.meta
Normal file
10
Assets/Plugins/Grpc.Core/runtimes/osx/x86.meta
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 2ee63d0ffcfa72a4fbd7ad04ba34cadb
|
||||
folderAsset: yes
|
||||
timeCreated: 1531219385
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Plugins/Grpc.Core/runtimes/osx/x86/grpc_csharp_ext.bundle
(Stored with Git LFS)
Normal file
BIN
Assets/Plugins/Grpc.Core/runtimes/osx/x86/grpc_csharp_ext.bundle
(Stored with Git LFS)
Normal file
Binary file not shown.
|
|
@ -0,0 +1,117 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 34ec9b69f128d6d4fa3fb46bc70b547c
|
||||
timeCreated: 1531219386
|
||||
licenseType: Free
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
platformData:
|
||||
- first:
|
||||
'': Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 1
|
||||
Exclude Editor: 0
|
||||
Exclude Linux: 1
|
||||
Exclude Linux64: 1
|
||||
Exclude LinuxUniversal: 1
|
||||
Exclude OSXIntel: 0
|
||||
Exclude OSXIntel64: 1
|
||||
Exclude OSXUniversal: 0
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 1
|
||||
Exclude iOS: 1
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: ARMv7
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86
|
||||
DefaultValueInitialized: true
|
||||
OS: OSX
|
||||
- first:
|
||||
Facebook: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Facebook: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Linux
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86_64
|
||||
- first:
|
||||
Standalone: LinuxUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXIntel
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: OSXIntel64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
iPhone: iOS
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CompileFlags:
|
||||
FrameworkDependencies:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
10
Assets/Plugins/Grpc.Core/runtimes/win.meta
Normal file
10
Assets/Plugins/Grpc.Core/runtimes/win.meta
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 928a9392668000344b70b6fd126e522c
|
||||
folderAsset: yes
|
||||
timeCreated: 1531219385
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
10
Assets/Plugins/Grpc.Core/runtimes/win/x64.meta
Normal file
10
Assets/Plugins/Grpc.Core/runtimes/win/x64.meta
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 34969b8c99d7a934eaa5e84da9fcf326
|
||||
folderAsset: yes
|
||||
timeCreated: 1531219385
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Plugins/Grpc.Core/runtimes/win/x64/grpc_csharp_ext.dll
(Stored with Git LFS)
Normal file
BIN
Assets/Plugins/Grpc.Core/runtimes/win/x64/grpc_csharp_ext.dll
(Stored with Git LFS)
Normal file
Binary file not shown.
|
|
@ -0,0 +1,117 @@
|
|||
fileFormatVersion: 2
|
||||
guid: cb634ddbaed75c344a6b79bc91ca996e
|
||||
timeCreated: 1531219386
|
||||
licenseType: Free
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
platformData:
|
||||
- first:
|
||||
'': Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 1
|
||||
Exclude Editor: 0
|
||||
Exclude Linux: 0
|
||||
Exclude Linux64: 0
|
||||
Exclude LinuxUniversal: 0
|
||||
Exclude OSXIntel: 0
|
||||
Exclude OSXIntel64: 0
|
||||
Exclude OSXUniversal: 0
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 0
|
||||
Exclude iOS: 1
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: ARMv7
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86_64
|
||||
DefaultValueInitialized: true
|
||||
OS: Windows
|
||||
- first:
|
||||
Facebook: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Facebook: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Linux
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86_64
|
||||
- first:
|
||||
Standalone: LinuxUniversal
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: OSXIntel
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: OSXIntel64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
iPhone: iOS
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CompileFlags:
|
||||
FrameworkDependencies:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
10
Assets/Plugins/Grpc.Core/runtimes/win/x86.meta
Normal file
10
Assets/Plugins/Grpc.Core/runtimes/win/x86.meta
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ed5c6044f868f9a4f955b7db2d2df619
|
||||
folderAsset: yes
|
||||
timeCreated: 1531219385
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Plugins/Grpc.Core/runtimes/win/x86/grpc_csharp_ext.dll
(Stored with Git LFS)
Normal file
BIN
Assets/Plugins/Grpc.Core/runtimes/win/x86/grpc_csharp_ext.dll
(Stored with Git LFS)
Normal file
Binary file not shown.
|
|
@ -0,0 +1,117 @@
|
|||
fileFormatVersion: 2
|
||||
guid: fe9aa1338bfc3864eb50df0f9d648316
|
||||
timeCreated: 1531219386
|
||||
licenseType: Free
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
platformData:
|
||||
- first:
|
||||
'': Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 1
|
||||
Exclude Editor: 0
|
||||
Exclude Linux: 0
|
||||
Exclude Linux64: 0
|
||||
Exclude LinuxUniversal: 0
|
||||
Exclude OSXIntel: 0
|
||||
Exclude OSXIntel64: 0
|
||||
Exclude OSXUniversal: 0
|
||||
Exclude Win: 0
|
||||
Exclude Win64: 1
|
||||
Exclude iOS: 1
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: ARMv7
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86
|
||||
DefaultValueInitialized: true
|
||||
OS: Windows
|
||||
- first:
|
||||
Facebook: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Facebook: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Linux
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86_64
|
||||
- first:
|
||||
Standalone: LinuxUniversal
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: OSXIntel
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: OSXIntel64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
iPhone: iOS
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CompileFlags:
|
||||
FrameworkDependencies:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Plugins/System.Buffers.dll
(Stored with Git LFS)
Normal file
BIN
Assets/Plugins/System.Buffers.dll
(Stored with Git LFS)
Normal file
Binary file not shown.
33
Assets/Plugins/System.Buffers.dll.meta
Normal file
33
Assets/Plugins/System.Buffers.dll.meta
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ce837d1683742b46ab956fb33360fafe
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
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:
|
||||
BIN
Assets/Plugins/System.Memory.dll
(Stored with Git LFS)
Normal file
BIN
Assets/Plugins/System.Memory.dll
(Stored with Git LFS)
Normal file
Binary file not shown.
33
Assets/Plugins/System.Memory.dll.meta
Normal file
33
Assets/Plugins/System.Memory.dll.meta
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 273576731295a11c1b7fca8490ef5afd
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
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:
|
||||
BIN
Assets/Plugins/System.Runtime.CompilerServices.Unsafe.dll
(Stored with Git LFS)
Normal file
BIN
Assets/Plugins/System.Runtime.CompilerServices.Unsafe.dll
(Stored with Git LFS)
Normal file
Binary file not shown.
|
|
@ -0,0 +1,33 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c4ad452d6724491ca843aaee0eacf0e1
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
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:
|
||||
BIN
Assets/Plugins/System.Threading.Tasks.Extensions.dll
(Stored with Git LFS)
Normal file
BIN
Assets/Plugins/System.Threading.Tasks.Extensions.dll
(Stored with Git LFS)
Normal file
Binary file not shown.
33
Assets/Plugins/System.Threading.Tasks.Extensions.dll.meta
Normal file
33
Assets/Plugins/System.Threading.Tasks.Extensions.dll.meta
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 7d5fdfa6c0d89190186e8a6be326096d
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
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:
|
||||
3131
Assets/Scenes/ChatScene.unity
Normal file
3131
Assets/Scenes/ChatScene.unity
Normal file
File diff suppressed because it is too large
Load diff
7
Assets/Scenes/ChatScene.unity.meta
Normal file
7
Assets/Scenes/ChatScene.unity.meta
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ea5a8dc36702b6445b34bb7c7c5eb088
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Scripts.meta
Normal file
8
Assets/Scripts.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8e21db93f5570914091daea046edc6a5
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
223
Assets/Scripts/ChatComponent.cs
Normal file
223
Assets/Scripts/ChatComponent.cs
Normal file
|
|
@ -0,0 +1,223 @@
|
|||
using ChatApp.Shared.Hubs;
|
||||
using ChatApp.Shared.MessagePackObjects;
|
||||
using ChatApp.Shared.Services;
|
||||
using Grpc.Core;
|
||||
using MagicOnion.Client;
|
||||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace Assets.Scripts
|
||||
{
|
||||
public class ChatComponent : MonoBehaviour, IChatHubReceiver
|
||||
{
|
||||
private Channel channel;
|
||||
private IChatHub streamingClient;
|
||||
private IChatService client;
|
||||
|
||||
private bool isJoin;
|
||||
private bool isSelfDisConnected;
|
||||
|
||||
public Text ChatText;
|
||||
|
||||
public Button JoinOrLeaveButton;
|
||||
|
||||
public Text JoinOrLeaveButtonText;
|
||||
|
||||
public Button SendMessageButton;
|
||||
|
||||
public InputField Input;
|
||||
|
||||
public InputField ReportInput;
|
||||
|
||||
public Button SendReportButton;
|
||||
|
||||
public Button DisconnectButon;
|
||||
public Button ExceptionButton;
|
||||
public Button UnaryExceptionButton;
|
||||
|
||||
|
||||
void Start()
|
||||
{
|
||||
this.InitializeClient();
|
||||
this.InitializeUi();
|
||||
}
|
||||
|
||||
|
||||
async void OnDestroy()
|
||||
{
|
||||
// Clean up Hub and channel
|
||||
await this.streamingClient.DisposeAsync();
|
||||
await this.channel.ShutdownAsync();
|
||||
}
|
||||
|
||||
|
||||
private void InitializeClient()
|
||||
{
|
||||
// Initialize the Hub
|
||||
this.channel = new Channel("localhost", 12345, ChannelCredentials.Insecure);
|
||||
// for SSL/TLS connection
|
||||
//var serverCred = new SslCredentials(File.ReadAllText(Path.Combine(Application.streamingAssetsPath, "server.crt")));
|
||||
//this.channel = new Channel("test.example.com", 12345, serverCred);
|
||||
this.streamingClient = StreamingHubClient.Connect<IChatHub, IChatHubReceiver>(this.channel, this);
|
||||
this.RegisterDisconnectEvent(streamingClient);
|
||||
this.client = MagicOnionClient.Create<IChatService>(this.channel);
|
||||
}
|
||||
|
||||
|
||||
private void InitializeUi()
|
||||
{
|
||||
this.isJoin = false;
|
||||
|
||||
this.SendMessageButton.interactable = false;
|
||||
this.ChatText.text = string.Empty;
|
||||
this.Input.text = string.Empty;
|
||||
this.Input.placeholder.GetComponent<Text>().text = "Please enter your name.";
|
||||
this.JoinOrLeaveButtonText.text = "Enter the room";
|
||||
this.ExceptionButton.interactable = false;
|
||||
}
|
||||
|
||||
|
||||
private async void RegisterDisconnectEvent(IChatHub streamingClient)
|
||||
{
|
||||
try
|
||||
{
|
||||
// you can wait disconnected event
|
||||
await streamingClient.WaitForDisconnect();
|
||||
}
|
||||
finally
|
||||
{
|
||||
// try-to-reconnect? logging event? close? etc...
|
||||
Debug.Log("disconnected server.");
|
||||
|
||||
if (this.isSelfDisConnected)
|
||||
{
|
||||
// there is no particular meaning
|
||||
await Task.Delay(2000);
|
||||
|
||||
// reconnect
|
||||
this.ReconnectServer();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public async void DisconnectServer()
|
||||
{
|
||||
this.isSelfDisConnected = true;
|
||||
|
||||
this.JoinOrLeaveButton.interactable = false;
|
||||
this.SendMessageButton.interactable = false;
|
||||
this.SendReportButton.interactable = false;
|
||||
this.DisconnectButon.interactable = false;
|
||||
this.ExceptionButton.interactable = false;
|
||||
this.UnaryExceptionButton.interactable = false;
|
||||
|
||||
if (this.isJoin)
|
||||
this.JoinOrLeave();
|
||||
|
||||
await this.streamingClient.DisposeAsync();
|
||||
}
|
||||
|
||||
|
||||
private void ReconnectServer()
|
||||
{
|
||||
this.streamingClient = StreamingHubClient.Connect<IChatHub, IChatHubReceiver>(this.channel, this);
|
||||
this.RegisterDisconnectEvent(streamingClient);
|
||||
Debug.Log("Reconnected server.");
|
||||
|
||||
this.JoinOrLeaveButton.interactable = true;
|
||||
this.SendMessageButton.interactable = false;
|
||||
this.SendReportButton.interactable = true;
|
||||
this.DisconnectButon.interactable = true;
|
||||
this.ExceptionButton.interactable = true;
|
||||
this.UnaryExceptionButton.interactable = true;
|
||||
|
||||
this.isSelfDisConnected = false;
|
||||
}
|
||||
|
||||
|
||||
#region Client -> Server (Streaming)
|
||||
public async void JoinOrLeave()
|
||||
{
|
||||
if (this.isJoin)
|
||||
{
|
||||
await this.streamingClient.LeaveAsync();
|
||||
|
||||
this.InitializeUi();
|
||||
}
|
||||
else
|
||||
{
|
||||
var request = new JoinRequest { RoomName = "SampleRoom", UserName = this.Input.text };
|
||||
await this.streamingClient.JoinAsync(request);
|
||||
|
||||
this.isJoin = true;
|
||||
this.SendMessageButton.interactable = true;
|
||||
this.JoinOrLeaveButtonText.text = "Leave the room";
|
||||
this.Input.text = string.Empty;
|
||||
this.Input.placeholder.GetComponent<Text>().text = "Please enter a comment.";
|
||||
this.ExceptionButton.interactable = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public async void SendMessage()
|
||||
{
|
||||
if (!this.isJoin)
|
||||
return;
|
||||
|
||||
await this.streamingClient.SendMessageAsync(this.Input.text);
|
||||
|
||||
this.Input.text = string.Empty;
|
||||
}
|
||||
|
||||
public async void GenerateException()
|
||||
{
|
||||
// hub
|
||||
if (!this.isJoin) return;
|
||||
await this.streamingClient.GenerateException("client exception(streaminghub)!");
|
||||
}
|
||||
|
||||
public void SampleMethod()
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region Server -> Client (Streaming)
|
||||
public void OnJoin(string name)
|
||||
{
|
||||
this.ChatText.text += $"\n<color=grey>{name} entered the room.</color>";
|
||||
}
|
||||
|
||||
|
||||
public void OnLeave(string name)
|
||||
{
|
||||
this.ChatText.text += $"\n<color=grey>{name} left the room.</color>";
|
||||
}
|
||||
|
||||
public void OnSendMessage(MessageResponse message)
|
||||
{
|
||||
this.ChatText.text += $"\n{message.UserName}:{message.Message}";
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region Client -> Server (Unary)
|
||||
public async void SendReport()
|
||||
{
|
||||
await this.client.SendReportAsync(this.ReportInput.text);
|
||||
|
||||
this.ReportInput.text = string.Empty;
|
||||
}
|
||||
|
||||
public async void UnaryGenerateException()
|
||||
{
|
||||
// unary
|
||||
await this.client.GenerateException("client exception(unary)!");
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/ChatComponent.cs.meta
Normal file
11
Assets/Scripts/ChatComponent.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 7ea9e77872213814ea60ab05d1064578
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Scripts/Generated.meta
Normal file
8
Assets/Scripts/Generated.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: d7949e630c7ec6044af484bed87f78fd
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
397
Assets/Scripts/Generated/MagicOnion.Generated.cs
Normal file
397
Assets/Scripts/Generated/MagicOnion.Generated.cs
Normal file
|
|
@ -0,0 +1,397 @@
|
|||
// <auto-generated />
|
||||
#pragma warning disable 618
|
||||
#pragma warning disable 612
|
||||
#pragma warning disable 414
|
||||
#pragma warning disable 219
|
||||
#pragma warning disable 168
|
||||
|
||||
namespace MagicOnion
|
||||
{
|
||||
using global::System;
|
||||
using global::System.Collections.Generic;
|
||||
using global::System.Linq;
|
||||
using global::MagicOnion;
|
||||
using global::MagicOnion.Client;
|
||||
|
||||
public static partial class MagicOnionInitializer
|
||||
{
|
||||
static bool isRegistered = false;
|
||||
|
||||
[UnityEngine.RuntimeInitializeOnLoadMethod(UnityEngine.RuntimeInitializeLoadType.BeforeSceneLoad)]
|
||||
public static void Register()
|
||||
{
|
||||
if(isRegistered) return;
|
||||
isRegistered = true;
|
||||
|
||||
MagicOnionClientRegistry<ChatApp.Shared.Services.IChatService>.Register((x, y, z) => new ChatApp.Shared.Services.ChatServiceClient(x, y, z));
|
||||
|
||||
StreamingHubClientRegistry<ChatApp.Shared.Hubs.IChatHub, ChatApp.Shared.Hubs.IChatHubReceiver>.Register((a, _, b, c, d, e) => new ChatApp.Shared.Hubs.ChatHubClient(a, b, c, d, e));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning restore 168
|
||||
#pragma warning restore 219
|
||||
#pragma warning restore 414
|
||||
#pragma warning restore 612
|
||||
#pragma warning restore 618
|
||||
#pragma warning disable 618
|
||||
#pragma warning disable 612
|
||||
#pragma warning disable 414
|
||||
#pragma warning disable 219
|
||||
#pragma warning disable 168
|
||||
|
||||
namespace MagicOnion.Resolvers
|
||||
{
|
||||
using System;
|
||||
using MessagePack;
|
||||
|
||||
public class MagicOnionResolver : global::MessagePack.IFormatterResolver
|
||||
{
|
||||
public static readonly global::MessagePack.IFormatterResolver Instance = new MagicOnionResolver();
|
||||
|
||||
MagicOnionResolver()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public global::MessagePack.Formatters.IMessagePackFormatter<T> GetFormatter<T>()
|
||||
{
|
||||
return FormatterCache<T>.formatter;
|
||||
}
|
||||
|
||||
static class FormatterCache<T>
|
||||
{
|
||||
public static readonly global::MessagePack.Formatters.IMessagePackFormatter<T> formatter;
|
||||
|
||||
static FormatterCache()
|
||||
{
|
||||
var f = MagicOnionResolverGetFormatterHelper.GetFormatter(typeof(T));
|
||||
if (f != null)
|
||||
{
|
||||
formatter = (global::MessagePack.Formatters.IMessagePackFormatter<T>)f;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
internal static class MagicOnionResolverGetFormatterHelper
|
||||
{
|
||||
static readonly global::System.Collections.Generic.Dictionary<Type, int> lookup;
|
||||
|
||||
static MagicOnionResolverGetFormatterHelper()
|
||||
{
|
||||
lookup = new global::System.Collections.Generic.Dictionary<Type, int>(3)
|
||||
{
|
||||
{typeof(global::MagicOnion.DynamicArgumentTuple<global::System.Collections.Generic.List<int>, global::System.Collections.Generic.Dictionary<int, string>>), 0 },
|
||||
{typeof(global::System.Collections.Generic.Dictionary<int, string>), 1 },
|
||||
{typeof(global::System.Collections.Generic.List<int>), 2 },
|
||||
};
|
||||
}
|
||||
|
||||
internal static object GetFormatter(Type t)
|
||||
{
|
||||
int key;
|
||||
if (!lookup.TryGetValue(t, out key))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
switch (key)
|
||||
{
|
||||
case 0: return new global::MagicOnion.DynamicArgumentTupleFormatter<global::System.Collections.Generic.List<int>, global::System.Collections.Generic.Dictionary<int, string>>(default(global::System.Collections.Generic.List<int>), default(global::System.Collections.Generic.Dictionary<int, string>));
|
||||
case 1: return new global::MessagePack.Formatters.DictionaryFormatter<int, string>();
|
||||
case 2: return new global::MessagePack.Formatters.ListFormatter<int>();
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning restore 168
|
||||
#pragma warning restore 219
|
||||
#pragma warning restore 414
|
||||
#pragma warning restore 612
|
||||
#pragma warning restore 618
|
||||
#pragma warning disable 618
|
||||
#pragma warning disable 612
|
||||
#pragma warning disable 414
|
||||
#pragma warning disable 219
|
||||
#pragma warning disable 168
|
||||
|
||||
namespace ChatApp.Shared.Services {
|
||||
using System;
|
||||
using MagicOnion;
|
||||
using MagicOnion.Client;
|
||||
using Grpc.Core;
|
||||
using MessagePack;
|
||||
|
||||
[Ignore]
|
||||
public class ChatServiceClient : MagicOnionClientBase<global::ChatApp.Shared.Services.IChatService>, global::ChatApp.Shared.Services.IChatService
|
||||
{
|
||||
static readonly Method<byte[], byte[]> GenerateExceptionMethod;
|
||||
static readonly Func<RequestContext, ResponseContext> GenerateExceptionDelegate;
|
||||
static readonly Method<byte[], byte[]> SendReportAsyncMethod;
|
||||
static readonly Func<RequestContext, ResponseContext> SendReportAsyncDelegate;
|
||||
|
||||
static ChatServiceClient()
|
||||
{
|
||||
GenerateExceptionMethod = new Method<byte[], byte[]>(MethodType.Unary, "IChatService", "GenerateException", MagicOnionMarshallers.ThroughMarshaller, MagicOnionMarshallers.ThroughMarshaller);
|
||||
GenerateExceptionDelegate = _GenerateException;
|
||||
SendReportAsyncMethod = new Method<byte[], byte[]>(MethodType.Unary, "IChatService", "SendReportAsync", MagicOnionMarshallers.ThroughMarshaller, MagicOnionMarshallers.ThroughMarshaller);
|
||||
SendReportAsyncDelegate = _SendReportAsync;
|
||||
}
|
||||
|
||||
ChatServiceClient()
|
||||
{
|
||||
}
|
||||
|
||||
public ChatServiceClient(CallInvoker callInvoker, MessagePackSerializerOptions serializerOptions, IClientFilter[] filters)
|
||||
: base(callInvoker, serializerOptions, filters)
|
||||
{
|
||||
}
|
||||
|
||||
protected override MagicOnionClientBase<IChatService> Clone()
|
||||
{
|
||||
var clone = new ChatServiceClient();
|
||||
clone.host = this.host;
|
||||
clone.option = this.option;
|
||||
clone.callInvoker = this.callInvoker;
|
||||
clone.serializerOptions = this.serializerOptions;
|
||||
clone.filters = filters;
|
||||
return clone;
|
||||
}
|
||||
|
||||
public new IChatService WithHeaders(Metadata headers)
|
||||
{
|
||||
return base.WithHeaders(headers);
|
||||
}
|
||||
|
||||
public new IChatService WithCancellationToken(System.Threading.CancellationToken cancellationToken)
|
||||
{
|
||||
return base.WithCancellationToken(cancellationToken);
|
||||
}
|
||||
|
||||
public new IChatService WithDeadline(System.DateTime deadline)
|
||||
{
|
||||
return base.WithDeadline(deadline);
|
||||
}
|
||||
|
||||
public new IChatService WithHost(string host)
|
||||
{
|
||||
return base.WithHost(host);
|
||||
}
|
||||
|
||||
public new IChatService WithOptions(CallOptions option)
|
||||
{
|
||||
return base.WithOptions(option);
|
||||
}
|
||||
|
||||
static ResponseContext _GenerateException(RequestContext __context)
|
||||
{
|
||||
return CreateResponseContext<string, Nil>(__context, GenerateExceptionMethod);
|
||||
}
|
||||
|
||||
public global::MagicOnion.UnaryResult<Nil> GenerateException(string message)
|
||||
{
|
||||
return InvokeAsync<string, Nil>("IChatService/GenerateException", message, GenerateExceptionDelegate);
|
||||
}
|
||||
static ResponseContext _SendReportAsync(RequestContext __context)
|
||||
{
|
||||
return CreateResponseContext<string, Nil>(__context, SendReportAsyncMethod);
|
||||
}
|
||||
|
||||
public global::MagicOnion.UnaryResult<Nil> SendReportAsync(string message)
|
||||
{
|
||||
return InvokeAsync<string, Nil>("IChatService/SendReportAsync", message, SendReportAsyncDelegate);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning restore 168
|
||||
#pragma warning restore 219
|
||||
#pragma warning restore 414
|
||||
#pragma warning restore 612
|
||||
#pragma warning restore 618
|
||||
#pragma warning disable 618
|
||||
#pragma warning disable 612
|
||||
#pragma warning disable 414
|
||||
#pragma warning disable 219
|
||||
#pragma warning disable 168
|
||||
|
||||
namespace ChatApp.Shared.Hubs {
|
||||
using Grpc.Core;
|
||||
using Grpc.Core.Logging;
|
||||
using MagicOnion;
|
||||
using MagicOnion.Client;
|
||||
using MessagePack;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
[Ignore]
|
||||
public class ChatHubClient : StreamingHubClientBase<global::ChatApp.Shared.Hubs.IChatHub, global::ChatApp.Shared.Hubs.IChatHubReceiver>, global::ChatApp.Shared.Hubs.IChatHub
|
||||
{
|
||||
static readonly Method<byte[], byte[]> method = new Method<byte[], byte[]>(MethodType.DuplexStreaming, "IChatHub", "Connect", MagicOnionMarshallers.ThroughMarshaller, MagicOnionMarshallers.ThroughMarshaller);
|
||||
|
||||
protected override Method<byte[], byte[]> DuplexStreamingAsyncMethod { get { return method; } }
|
||||
|
||||
readonly global::ChatApp.Shared.Hubs.IChatHub __fireAndForgetClient;
|
||||
|
||||
public ChatHubClient(CallInvoker callInvoker, string host, CallOptions option, MessagePackSerializerOptions serializerOptions, ILogger logger)
|
||||
: base(callInvoker, host, option, serializerOptions, logger)
|
||||
{
|
||||
this.__fireAndForgetClient = new FireAndForgetClient(this);
|
||||
}
|
||||
|
||||
public global::ChatApp.Shared.Hubs.IChatHub FireAndForget()
|
||||
{
|
||||
return __fireAndForgetClient;
|
||||
}
|
||||
|
||||
protected override void OnBroadcastEvent(int methodId, ArraySegment<byte> data)
|
||||
{
|
||||
switch (methodId)
|
||||
{
|
||||
case -1297457280: // OnJoin
|
||||
{
|
||||
var result = MessagePackSerializer.Deserialize<string>(data, serializerOptions);
|
||||
receiver.OnJoin(result); break;
|
||||
}
|
||||
case 532410095: // OnLeave
|
||||
{
|
||||
var result = MessagePackSerializer.Deserialize<string>(data, serializerOptions);
|
||||
receiver.OnLeave(result); break;
|
||||
}
|
||||
case -552695459: // OnSendMessage
|
||||
{
|
||||
var result = MessagePackSerializer.Deserialize<global::ChatApp.Shared.MessagePackObjects.MessageResponse>(data, serializerOptions);
|
||||
receiver.OnSendMessage(result); break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
protected override void OnResponseEvent(int methodId, object taskCompletionSource, ArraySegment<byte> data)
|
||||
{
|
||||
switch (methodId)
|
||||
{
|
||||
case -733403293: // JoinAsync
|
||||
{
|
||||
var result = MessagePackSerializer.Deserialize<Nil>(data, serializerOptions);
|
||||
((TaskCompletionSource<Nil>)taskCompletionSource).TrySetResult(result);
|
||||
break;
|
||||
}
|
||||
case 1368362116: // LeaveAsync
|
||||
{
|
||||
var result = MessagePackSerializer.Deserialize<Nil>(data, serializerOptions);
|
||||
((TaskCompletionSource<Nil>)taskCompletionSource).TrySetResult(result);
|
||||
break;
|
||||
}
|
||||
case -601690414: // SendMessageAsync
|
||||
{
|
||||
var result = MessagePackSerializer.Deserialize<Nil>(data, serializerOptions);
|
||||
((TaskCompletionSource<Nil>)taskCompletionSource).TrySetResult(result);
|
||||
break;
|
||||
}
|
||||
case 517938971: // GenerateException
|
||||
{
|
||||
var result = MessagePackSerializer.Deserialize<Nil>(data, serializerOptions);
|
||||
((TaskCompletionSource<Nil>)taskCompletionSource).TrySetResult(result);
|
||||
break;
|
||||
}
|
||||
case -852153394: // SampleMethod
|
||||
{
|
||||
var result = MessagePackSerializer.Deserialize<Nil>(data, serializerOptions);
|
||||
((TaskCompletionSource<Nil>)taskCompletionSource).TrySetResult(result);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public global::System.Threading.Tasks.Task JoinAsync(global::ChatApp.Shared.MessagePackObjects.JoinRequest request)
|
||||
{
|
||||
return WriteMessageWithResponseAsync<global::ChatApp.Shared.MessagePackObjects.JoinRequest, Nil>(-733403293, request);
|
||||
}
|
||||
|
||||
public global::System.Threading.Tasks.Task LeaveAsync()
|
||||
{
|
||||
return WriteMessageWithResponseAsync<Nil, Nil>(1368362116, Nil.Default);
|
||||
}
|
||||
|
||||
public global::System.Threading.Tasks.Task SendMessageAsync(string message)
|
||||
{
|
||||
return WriteMessageWithResponseAsync<string, Nil>(-601690414, message);
|
||||
}
|
||||
|
||||
public global::System.Threading.Tasks.Task GenerateException(string message)
|
||||
{
|
||||
return WriteMessageWithResponseAsync<string, Nil>(517938971, message);
|
||||
}
|
||||
|
||||
public global::System.Threading.Tasks.Task SampleMethod(global::System.Collections.Generic.List<int> sampleList, global::System.Collections.Generic.Dictionary<int, string> sampleDictionary)
|
||||
{
|
||||
return WriteMessageWithResponseAsync<DynamicArgumentTuple<global::System.Collections.Generic.List<int>, global::System.Collections.Generic.Dictionary<int, string>>, Nil>(-852153394, new DynamicArgumentTuple<global::System.Collections.Generic.List<int>, global::System.Collections.Generic.Dictionary<int, string>>(sampleList, sampleDictionary));
|
||||
}
|
||||
|
||||
|
||||
class FireAndForgetClient : global::ChatApp.Shared.Hubs.IChatHub
|
||||
{
|
||||
readonly ChatHubClient __parent;
|
||||
|
||||
public FireAndForgetClient(ChatHubClient parentClient)
|
||||
{
|
||||
this.__parent = parentClient;
|
||||
}
|
||||
|
||||
public global::ChatApp.Shared.Hubs.IChatHub FireAndForget()
|
||||
{
|
||||
throw new NotSupportedException();
|
||||
}
|
||||
|
||||
public Task DisposeAsync()
|
||||
{
|
||||
throw new NotSupportedException();
|
||||
}
|
||||
|
||||
public Task WaitForDisconnect()
|
||||
{
|
||||
throw new NotSupportedException();
|
||||
}
|
||||
|
||||
public global::System.Threading.Tasks.Task JoinAsync(global::ChatApp.Shared.MessagePackObjects.JoinRequest request)
|
||||
{
|
||||
return __parent.WriteMessageAsync<global::ChatApp.Shared.MessagePackObjects.JoinRequest>(-733403293, request);
|
||||
}
|
||||
|
||||
public global::System.Threading.Tasks.Task LeaveAsync()
|
||||
{
|
||||
return __parent.WriteMessageAsync<Nil>(1368362116, Nil.Default);
|
||||
}
|
||||
|
||||
public global::System.Threading.Tasks.Task SendMessageAsync(string message)
|
||||
{
|
||||
return __parent.WriteMessageAsync<string>(-601690414, message);
|
||||
}
|
||||
|
||||
public global::System.Threading.Tasks.Task GenerateException(string message)
|
||||
{
|
||||
return __parent.WriteMessageAsync<string>(517938971, message);
|
||||
}
|
||||
|
||||
public global::System.Threading.Tasks.Task SampleMethod(global::System.Collections.Generic.List<int> sampleList, global::System.Collections.Generic.Dictionary<int, string> sampleDictionary)
|
||||
{
|
||||
return __parent.WriteMessageAsync<DynamicArgumentTuple<global::System.Collections.Generic.List<int>, global::System.Collections.Generic.Dictionary<int, string>>>(-852153394, new DynamicArgumentTuple<global::System.Collections.Generic.List<int>, global::System.Collections.Generic.Dictionary<int, string>>(sampleList, sampleDictionary));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning restore 168
|
||||
#pragma warning restore 219
|
||||
#pragma warning restore 414
|
||||
#pragma warning restore 618
|
||||
#pragma warning restore 612
|
||||
11
Assets/Scripts/Generated/MagicOnion.Generated.cs.meta
Normal file
11
Assets/Scripts/Generated/MagicOnion.Generated.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8101cc28afd16634bb4bbd1bff64cf99
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
223
Assets/Scripts/Generated/MessagePack.Generated.cs
Normal file
223
Assets/Scripts/Generated/MessagePack.Generated.cs
Normal file
|
|
@ -0,0 +1,223 @@
|
|||
// <auto-generated>
|
||||
// THIS (.cs) FILE IS GENERATED BY MPC(MessagePack-CSharp). DO NOT CHANGE IT.
|
||||
// </auto-generated>
|
||||
|
||||
#pragma warning disable 618
|
||||
#pragma warning disable 612
|
||||
#pragma warning disable 414
|
||||
#pragma warning disable 168
|
||||
|
||||
#pragma warning disable SA1200 // Using directives should be placed correctly
|
||||
#pragma warning disable SA1312 // Variable names should begin with lower-case letter
|
||||
#pragma warning disable SA1649 // File name should match first type name
|
||||
|
||||
namespace MessagePack.Resolvers
|
||||
{
|
||||
using System;
|
||||
using System.Buffers;
|
||||
using MessagePack;
|
||||
|
||||
public class GeneratedResolver : global::MessagePack.IFormatterResolver
|
||||
{
|
||||
public static readonly global::MessagePack.IFormatterResolver Instance = new GeneratedResolver();
|
||||
|
||||
private GeneratedResolver()
|
||||
{
|
||||
}
|
||||
|
||||
public global::MessagePack.Formatters.IMessagePackFormatter<T> GetFormatter<T>()
|
||||
{
|
||||
return FormatterCache<T>.Formatter;
|
||||
}
|
||||
|
||||
private static class FormatterCache<T>
|
||||
{
|
||||
internal static readonly global::MessagePack.Formatters.IMessagePackFormatter<T> Formatter;
|
||||
|
||||
static FormatterCache()
|
||||
{
|
||||
var f = GeneratedResolverGetFormatterHelper.GetFormatter(typeof(T));
|
||||
if (f != null)
|
||||
{
|
||||
Formatter = (global::MessagePack.Formatters.IMessagePackFormatter<T>)f;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
internal static class GeneratedResolverGetFormatterHelper
|
||||
{
|
||||
private static readonly global::System.Collections.Generic.Dictionary<Type, int> lookup;
|
||||
|
||||
static GeneratedResolverGetFormatterHelper()
|
||||
{
|
||||
lookup = new global::System.Collections.Generic.Dictionary<Type, int>(2)
|
||||
{
|
||||
{ typeof(global::ChatApp.Shared.MessagePackObjects.JoinRequest), 0 },
|
||||
{ typeof(global::ChatApp.Shared.MessagePackObjects.MessageResponse), 1 },
|
||||
};
|
||||
}
|
||||
|
||||
internal static object GetFormatter(Type t)
|
||||
{
|
||||
int key;
|
||||
if (!lookup.TryGetValue(t, out key))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
switch (key)
|
||||
{
|
||||
case 0: return new MessagePack.Formatters.ChatApp.Shared.MessagePackObjects.JoinRequestFormatter();
|
||||
case 1: return new MessagePack.Formatters.ChatApp.Shared.MessagePackObjects.MessageResponseFormatter();
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning restore 168
|
||||
#pragma warning restore 414
|
||||
#pragma warning restore 618
|
||||
#pragma warning restore 612
|
||||
|
||||
#pragma warning restore SA1312 // Variable names should begin with lower-case letter
|
||||
#pragma warning restore SA1200 // Using directives should be placed correctly
|
||||
#pragma warning restore SA1649 // File name should match first type name
|
||||
|
||||
|
||||
|
||||
|
||||
// <auto-generated>
|
||||
// THIS (.cs) FILE IS GENERATED BY MPC(MessagePack-CSharp). DO NOT CHANGE IT.
|
||||
// </auto-generated>
|
||||
|
||||
#pragma warning disable 618
|
||||
#pragma warning disable 612
|
||||
#pragma warning disable 414
|
||||
#pragma warning disable 168
|
||||
|
||||
#pragma warning disable SA1129 // Do not use default value type constructor
|
||||
#pragma warning disable SA1200 // Using directives should be placed correctly
|
||||
#pragma warning disable SA1309 // Field names should not begin with underscore
|
||||
#pragma warning disable SA1312 // Variable names should begin with lower-case letter
|
||||
#pragma warning disable SA1403 // File may only contain a single namespace
|
||||
#pragma warning disable SA1649 // File name should match first type name
|
||||
|
||||
namespace MessagePack.Formatters.ChatApp.Shared.MessagePackObjects
|
||||
{
|
||||
using System;
|
||||
using System.Buffers;
|
||||
using MessagePack;
|
||||
|
||||
public sealed class JoinRequestFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::ChatApp.Shared.MessagePackObjects.JoinRequest>
|
||||
{
|
||||
|
||||
|
||||
public void Serialize(ref MessagePackWriter writer, global::ChatApp.Shared.MessagePackObjects.JoinRequest value, global::MessagePack.MessagePackSerializerOptions options)
|
||||
{
|
||||
IFormatterResolver formatterResolver = options.Resolver;
|
||||
writer.WriteArrayHeader(2);
|
||||
formatterResolver.GetFormatterWithVerify<string>().Serialize(ref writer, value.RoomName, options);
|
||||
formatterResolver.GetFormatterWithVerify<string>().Serialize(ref writer, value.UserName, options);
|
||||
}
|
||||
|
||||
public global::ChatApp.Shared.MessagePackObjects.JoinRequest Deserialize(ref MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options)
|
||||
{
|
||||
if (reader.TryReadNil())
|
||||
{
|
||||
throw new InvalidOperationException("typecode is null, struct not supported");
|
||||
}
|
||||
|
||||
IFormatterResolver formatterResolver = options.Resolver;
|
||||
var length = reader.ReadArrayHeader();
|
||||
var __RoomName__ = default(string);
|
||||
var __UserName__ = default(string);
|
||||
|
||||
for (int i = 0; i < length; i++)
|
||||
{
|
||||
var key = i;
|
||||
|
||||
switch (key)
|
||||
{
|
||||
case 0:
|
||||
__RoomName__ = formatterResolver.GetFormatterWithVerify<string>().Deserialize(ref reader, options);
|
||||
break;
|
||||
case 1:
|
||||
__UserName__ = formatterResolver.GetFormatterWithVerify<string>().Deserialize(ref reader, options);
|
||||
break;
|
||||
default:
|
||||
reader.Skip();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
var ____result = new global::ChatApp.Shared.MessagePackObjects.JoinRequest();
|
||||
____result.RoomName = __RoomName__;
|
||||
____result.UserName = __UserName__;
|
||||
return ____result;
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class MessageResponseFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::ChatApp.Shared.MessagePackObjects.MessageResponse>
|
||||
{
|
||||
|
||||
|
||||
public void Serialize(ref MessagePackWriter writer, global::ChatApp.Shared.MessagePackObjects.MessageResponse value, global::MessagePack.MessagePackSerializerOptions options)
|
||||
{
|
||||
IFormatterResolver formatterResolver = options.Resolver;
|
||||
writer.WriteArrayHeader(2);
|
||||
formatterResolver.GetFormatterWithVerify<string>().Serialize(ref writer, value.UserName, options);
|
||||
formatterResolver.GetFormatterWithVerify<string>().Serialize(ref writer, value.Message, options);
|
||||
}
|
||||
|
||||
public global::ChatApp.Shared.MessagePackObjects.MessageResponse Deserialize(ref MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options)
|
||||
{
|
||||
if (reader.TryReadNil())
|
||||
{
|
||||
throw new InvalidOperationException("typecode is null, struct not supported");
|
||||
}
|
||||
|
||||
IFormatterResolver formatterResolver = options.Resolver;
|
||||
var length = reader.ReadArrayHeader();
|
||||
var __UserName__ = default(string);
|
||||
var __Message__ = default(string);
|
||||
|
||||
for (int i = 0; i < length; i++)
|
||||
{
|
||||
var key = i;
|
||||
|
||||
switch (key)
|
||||
{
|
||||
case 0:
|
||||
__UserName__ = formatterResolver.GetFormatterWithVerify<string>().Deserialize(ref reader, options);
|
||||
break;
|
||||
case 1:
|
||||
__Message__ = formatterResolver.GetFormatterWithVerify<string>().Deserialize(ref reader, options);
|
||||
break;
|
||||
default:
|
||||
reader.Skip();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
var ____result = new global::ChatApp.Shared.MessagePackObjects.MessageResponse();
|
||||
____result.UserName = __UserName__;
|
||||
____result.Message = __Message__;
|
||||
return ____result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning restore 168
|
||||
#pragma warning restore 414
|
||||
#pragma warning restore 618
|
||||
#pragma warning restore 612
|
||||
|
||||
#pragma warning restore SA1129 // Do not use default value type constructor
|
||||
#pragma warning restore SA1200 // Using directives should be placed correctly
|
||||
#pragma warning restore SA1309 // Field names should not begin with underscore
|
||||
#pragma warning restore SA1312 // Variable names should begin with lower-case letter
|
||||
#pragma warning restore SA1403 // File may only contain a single namespace
|
||||
#pragma warning restore SA1649 // File name should match first type name
|
||||
|
||||
11
Assets/Scripts/Generated/MessagePack.Generated.cs.meta
Normal file
11
Assets/Scripts/Generated/MessagePack.Generated.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 06622dddf17e3734bb11f4133d2427d8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
24
Assets/Scripts/InitialSettings.cs
Normal file
24
Assets/Scripts/InitialSettings.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
using MessagePack;
|
||||
using MessagePack.Resolvers;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Assets.Scripts
|
||||
{
|
||||
class InitialSettings
|
||||
{
|
||||
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
|
||||
static void RegisterResolvers()
|
||||
{
|
||||
// NOTE: Currently, CompositeResolver doesn't work on Unity IL2CPP build. Use StaticCompositeResolver instead of it.
|
||||
StaticCompositeResolver.Instance.Register(
|
||||
MagicOnion.Resolvers.MagicOnionResolver.Instance,
|
||||
MessagePack.Resolvers.GeneratedResolver.Instance,
|
||||
BuiltinResolver.Instance,
|
||||
PrimitiveObjectResolver.Instance
|
||||
);
|
||||
|
||||
MessagePackSerializer.DefaultOptions = MessagePackSerializer.DefaultOptions
|
||||
.WithResolver(StaticCompositeResolver.Instance);
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/InitialSettings.cs.meta
Normal file
11
Assets/Scripts/InitialSettings.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 642627729ca40a74d865e205a6001bb1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Scripts/MagicOnion.Abstractions.meta
Normal file
8
Assets/Scripts/MagicOnion.Abstractions.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: d10546c5ab03aee43ba1b004a61f0d8e
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Scripts/MagicOnion.Abstractions/Client.meta
Normal file
8
Assets/Scripts/MagicOnion.Abstractions/Client.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: aca11e9577c2fb24c9ff99ccac34dbba
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
using Grpc.Core;
|
||||
using MessagePack;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MagicOnion.Client
|
||||
{
|
||||
public interface IResponseContext : IDisposable
|
||||
{
|
||||
Task<Metadata> ResponseHeadersAsync { get; }
|
||||
Status GetStatus();
|
||||
Metadata GetTrailers();
|
||||
Type ResponseType { get; }
|
||||
}
|
||||
|
||||
public interface IResponseContext<T> : IResponseContext
|
||||
{
|
||||
Task<T> ResponseAsync { get; }
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: d1954ea03abc7c34fba72fdd2cd9a8bf
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
132
Assets/Scripts/MagicOnion.Abstractions/ClientStreamingResult.cs
Normal file
132
Assets/Scripts/MagicOnion.Abstractions/ClientStreamingResult.cs
Normal file
|
|
@ -0,0 +1,132 @@
|
|||
using Grpc.Core;
|
||||
using MessagePack;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MagicOnion
|
||||
{
|
||||
/// <summary>
|
||||
/// Wrapped AsyncClientStreamingCall.
|
||||
/// </summary>
|
||||
public struct ClientStreamingResult<TRequest, TResponse> : IDisposable
|
||||
{
|
||||
internal readonly TResponse rawValue;
|
||||
internal readonly bool hasRawValue;
|
||||
readonly AsyncClientStreamingCall<byte[], byte[]> inner;
|
||||
readonly IClientStreamWriter<TRequest> requestStream;
|
||||
readonly MessagePackSerializerOptions serializerOptions;
|
||||
|
||||
public ClientStreamingResult(TResponse rawValue)
|
||||
{
|
||||
this.hasRawValue = true;
|
||||
this.rawValue = rawValue;
|
||||
this.inner = null;
|
||||
this.requestStream = null;
|
||||
this.serializerOptions = null;
|
||||
}
|
||||
|
||||
public ClientStreamingResult(AsyncClientStreamingCall<byte[], byte[]> inner, IClientStreamWriter<TRequest> requestStream, MessagePackSerializerOptions serializerOptions)
|
||||
{
|
||||
this.hasRawValue = false;
|
||||
this.rawValue = default(TResponse);
|
||||
this.inner = inner;
|
||||
this.requestStream = requestStream;
|
||||
this.serializerOptions = serializerOptions;
|
||||
}
|
||||
|
||||
async Task<TResponse> Deserialize()
|
||||
{
|
||||
var bytes = await inner.ResponseAsync.ConfigureAwait(false);
|
||||
return MessagePackSerializer.Deserialize<TResponse>(bytes, serializerOptions);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Asynchronous call result.
|
||||
/// </summary>
|
||||
public Task<TResponse> ResponseAsync
|
||||
{
|
||||
get
|
||||
{
|
||||
if (hasRawValue)
|
||||
{
|
||||
return Task.FromResult(rawValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
return Deserialize();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Asynchronous access to response headers.
|
||||
/// </summary>
|
||||
public Task<Metadata> ResponseHeadersAsync
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.inner.ResponseHeadersAsync;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Async stream to send streaming requests.
|
||||
/// </summary>
|
||||
public IClientStreamWriter<TRequest> RequestStream
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.requestStream;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Allows awaiting this object directly.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public TaskAwaiter<TResponse> GetAwaiter()
|
||||
{
|
||||
return ResponseAsync.GetAwaiter();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the call status if the call has already finished.
|
||||
/// Throws InvalidOperationException otherwise.
|
||||
/// </summary>
|
||||
public Status GetStatus()
|
||||
{
|
||||
return this.inner.GetStatus();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the call trailing metadata if the call has already finished.
|
||||
/// Throws InvalidOperationException otherwise.
|
||||
/// </summary>
|
||||
public Metadata GetTrailers()
|
||||
{
|
||||
return this.inner.GetTrailers();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Provides means to cleanup after the call.
|
||||
/// If the call has already finished normally (request stream has been completed and call result has been received), doesn't do anything.
|
||||
/// Otherwise, requests cancellation of the call which should terminate all pending async operations associated with the call.
|
||||
/// As a result, all resources being used by the call should be released eventually.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Normally, there is no need for you to dispose the call unless you want to utilize the
|
||||
/// "Cancel" semantics of invoking <c>Dispose</c>.
|
||||
/// </remarks>
|
||||
public void Dispose()
|
||||
{
|
||||
if (this.inner != null)
|
||||
{
|
||||
this.inner.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1e92d02db742a454fa25774f217806cb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: cee65f2126c31d0418b29c422566e23b
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,80 @@
|
|||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Security;
|
||||
|
||||
namespace MagicOnion.CompilerServices
|
||||
{
|
||||
public struct AsyncUnaryResultMethodBuilder<T>
|
||||
{
|
||||
private AsyncTaskMethodBuilder<T> methodBuilder;
|
||||
private T result;
|
||||
private bool haveResult;
|
||||
private bool useBuilder;
|
||||
|
||||
public static AsyncUnaryResultMethodBuilder<T> Create()
|
||||
{
|
||||
return new AsyncUnaryResultMethodBuilder<T>() { methodBuilder = AsyncTaskMethodBuilder<T>.Create() };
|
||||
}
|
||||
|
||||
public void Start<TStateMachine>(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine
|
||||
{
|
||||
methodBuilder.Start(ref stateMachine); // will provide the right ExecutionContext semantics
|
||||
}
|
||||
|
||||
public void SetStateMachine(IAsyncStateMachine stateMachine)
|
||||
{
|
||||
methodBuilder.SetStateMachine(stateMachine);
|
||||
}
|
||||
|
||||
public void SetResult(T result)
|
||||
{
|
||||
if (useBuilder)
|
||||
{
|
||||
methodBuilder.SetResult(result);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.result = result;
|
||||
haveResult = true;
|
||||
}
|
||||
}
|
||||
|
||||
public void SetException(Exception exception)
|
||||
{
|
||||
methodBuilder.SetException(exception);
|
||||
}
|
||||
|
||||
public UnaryResult<T> Task
|
||||
{
|
||||
get
|
||||
{
|
||||
if (haveResult)
|
||||
{
|
||||
return new UnaryResult<T>(result);
|
||||
}
|
||||
else
|
||||
{
|
||||
useBuilder = true;
|
||||
return new UnaryResult<T>(methodBuilder.Task);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void AwaitOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter awaiter, ref TStateMachine stateMachine)
|
||||
where TAwaiter : INotifyCompletion
|
||||
where TStateMachine : IAsyncStateMachine
|
||||
{
|
||||
useBuilder = true;
|
||||
methodBuilder.AwaitOnCompleted(ref awaiter, ref stateMachine);
|
||||
}
|
||||
|
||||
[SecuritySafeCritical]
|
||||
public void AwaitUnsafeOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter awaiter, ref TStateMachine stateMachine)
|
||||
where TAwaiter : ICriticalNotifyCompletion
|
||||
where TStateMachine : IAsyncStateMachine
|
||||
{
|
||||
useBuilder = true;
|
||||
methodBuilder.AwaitUnsafeOnCompleted(ref awaiter, ref stateMachine);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 975c42469777f414fae46186971f0dc8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,95 @@
|
|||
using Grpc.Core;
|
||||
using MessagePack;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MagicOnion
|
||||
{
|
||||
/// <summary>
|
||||
/// Wrapped AsyncDuplexStreamingCall.
|
||||
/// </summary>
|
||||
public struct DuplexStreamingResult<TRequest, TResponse> : IDisposable
|
||||
{
|
||||
readonly AsyncDuplexStreamingCall<byte[], byte[]> inner;
|
||||
readonly IClientStreamWriter<TRequest> requestStream;
|
||||
readonly IAsyncStreamReader<TResponse> responseStream;
|
||||
|
||||
public DuplexStreamingResult(AsyncDuplexStreamingCall<byte[], byte[]> inner, IClientStreamWriter<TRequest> requestStream, IAsyncStreamReader<TResponse> responseStream, MessagePackSerializerOptions serializerOptions)
|
||||
{
|
||||
this.inner = inner;
|
||||
this.requestStream = requestStream;
|
||||
this.responseStream = responseStream;
|
||||
}
|
||||
|
||||
public AsyncDuplexStreamingCall<byte[], byte[]> RawStreamingCall => inner;
|
||||
|
||||
/// <summary>
|
||||
/// Async stream to read streaming responses.
|
||||
/// </summary>
|
||||
public IAsyncStreamReader<TResponse> ResponseStream
|
||||
{
|
||||
get
|
||||
{
|
||||
return responseStream;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Async stream to send streaming requests.
|
||||
/// </summary>
|
||||
public IClientStreamWriter<TRequest> RequestStream
|
||||
{
|
||||
get
|
||||
{
|
||||
return requestStream;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Asynchronous access to response headers.
|
||||
/// </summary>
|
||||
public Task<Metadata> ResponseHeadersAsync
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.inner.ResponseHeadersAsync;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the call status if the call has already finished.
|
||||
/// Throws InvalidOperationException otherwise.
|
||||
/// </summary>
|
||||
public Status GetStatus()
|
||||
{
|
||||
return this.inner.GetStatus();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the call trailing metadata if the call has already finished.
|
||||
/// Throws InvalidOperationException otherwise.
|
||||
/// </summary>
|
||||
public Metadata GetTrailers()
|
||||
{
|
||||
return this.inner.GetTrailers();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Provides means to cleanup after the call.
|
||||
/// If the call has already finished normally (request stream has been completed and response stream has been fully read), doesn't do anything.
|
||||
/// Otherwise, requests cancellation of the call which should terminate all pending async operations associated with the call.
|
||||
/// As a result, all resources being used by the call should be released eventually.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Normally, there is no need for you to dispose the call unless you want to utilize the
|
||||
/// "Cancel" semantics of invoking <c>Dispose</c>.
|
||||
/// </remarks>
|
||||
public void Dispose()
|
||||
{
|
||||
if (this.inner != null)
|
||||
{
|
||||
this.inner.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 383e96f82d4d6244b951f0fc83d49b63
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MagicOnion
|
||||
{
|
||||
/// <summary>
|
||||
/// instruction for moc.exe, surround #if symbol with output code.
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Interface, AllowMultiple = false, Inherited = false)]
|
||||
public class GenerateDefineDebugAttribute : Attribute
|
||||
{
|
||||
public GenerateDefineDebugAttribute()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ab20e13a7e0b6b644a42dbfa3b44afd3
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
21
Assets/Scripts/MagicOnion.Abstractions/IService.cs
Normal file
21
Assets/Scripts/MagicOnion.Abstractions/IService.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
using Grpc.Core;
|
||||
using System;
|
||||
using System.Threading;
|
||||
|
||||
namespace MagicOnion
|
||||
{
|
||||
// used for MagicOnionEngine assembly scan for boostup analyze speed.
|
||||
public interface IServiceMarker
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public interface IService<TSelf> : IServiceMarker
|
||||
{
|
||||
TSelf WithOptions(CallOptions option);
|
||||
TSelf WithHeaders(Metadata headers);
|
||||
TSelf WithDeadline(DateTime deadline);
|
||||
TSelf WithCancellationToken(CancellationToken cancellationToken);
|
||||
TSelf WithHost(string host);
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/MagicOnion.Abstractions/IService.cs.meta
Normal file
11
Assets/Scripts/MagicOnion.Abstractions/IService.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 56677a2edb7ea644faf4846ad283b007
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
15
Assets/Scripts/MagicOnion.Abstractions/IStreamingHub.cs
Normal file
15
Assets/Scripts/MagicOnion.Abstractions/IStreamingHub.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using System.Threading.Tasks;
|
||||
|
||||
namespace MagicOnion
|
||||
{
|
||||
public interface IStreamingHubMarker
|
||||
{
|
||||
}
|
||||
|
||||
public interface IStreamingHub<TSelf, TReceiver> : IStreamingHubMarker, IServiceMarker
|
||||
{
|
||||
TSelf FireAndForget(); // if changed to get-only property, intellisense does not work on VS2017.
|
||||
Task DisposeAsync();
|
||||
Task WaitForDisconnect();
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/MagicOnion.Abstractions/IStreamingHub.cs.meta
Normal file
11
Assets/Scripts/MagicOnion.Abstractions/IStreamingHub.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 5d0a5fcfa0834b84ea6ff4d77e478fb9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
16
Assets/Scripts/MagicOnion.Abstractions/IgnoreAttribute.cs
Normal file
16
Assets/Scripts/MagicOnion.Abstractions/IgnoreAttribute.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MagicOnion
|
||||
{
|
||||
/// <summary>
|
||||
/// Don't register on MagicOnionEngine.
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class,AllowMultiple = false,Inherited = false)]
|
||||
public class IgnoreAttribute : Attribute
|
||||
{
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue