Comments (5)
Thank you! and very interesting.
Maybe, it is related to Grpc.Core.Server
.
I can only think of the following way.
server.Kill
-> new Server(MagicOnionServiceDefinition)
-> server.Start
from magiconion.
Kill the server will cause a disconnection to the client. Or will the client automatically restore the connect, even the stream connection won't notice the disconnection (logic level)?
Anyway, I guess I have to dive into Grpc Server
to find out a way to replace logic assemble during runtime. Thanks!
from magiconion.
Hi, I took some time this weekend and dig out the approach. I used some reflections so no need to modify the grpc
source.
Note:
- Assemblies can be loaded from raw binary dll files, so it can be overwritten in runtime.
- Remember to clean up old assemblies after the update.
from magiconion.
@parkycai Problem you will run into is unloading assemblies is only supported through unloading entire AppDomains. It is a Framework only feature (not core) and very complicated.
from magiconion.
@psibernetic agreed. By "clean up old assemblies" I means dispose any resources used by the assemblies. So this is a comprimise, that I don't need to make any inter-appdomain communication but only waste acceptable amount of memory.
from magiconion.
Related Issues (20)
- Question: How can I connect the TLS protocol to the new version (v5.1.8)? HOT 1
- Question: Possible to use Task and ValueTask instead of UnaryResult and such? HOT 1
- Question: ObjectDisposedException on proxy side
- Question: Is a MagicOnion server possible from within Unity?
- can support Webgl http2 and net8?
- I can't have multiple implementations!
- .NET 8 Support
- Client filter is not triggered for ServerStreamingResult method in services. HOT 1
- Performance is very slow, taking 355ms for the Add function to return the result HOT 2
- How can I disconnect a client by server?
- InternalsVisibleTo lead to warnings on dependent project HOT 1
- Implement Protobuf Endpoint
- ServerReflection does not work
- Cannot work after changing to MemoryPack HOT 2
- Console app probem: PlatformNotSupportedException HOT 1
- support webgl? HOT 2
- error CS0305: Using the generic type 'MemoryPackWriter<TBufferWriter>' requires 1 type arguments HOT 2
- Memory leak when reusing GrpcChannel on many clients HOT 1
- Can't lunch Swagger if I use Vector2 for the communication
- The type or namespace name 'MessagePack' does not exist in the namespace 'MagicOnion.Serialization' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magiconion.