Giter Site home page Giter Site logo

mhallan / xeeny Goto Github PK

View Code? Open in Web Editor NEW
29.0 29.0 6.0 230 KB

Framework For Building And Consuming Services In .Net Standard

License: MIT License

C# 100.00%
csharp dot-net dotnet dotnetstandard duplex json messagepack services tcp udp websockets xamarin

xeeny's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

xeeny's Issues

Optimize buffering

  • message creation should reuse a pooled buffer
  • message fragmentation to allow UDP and mix between streaming and messaging

xeeny xamarin

Hi,
i'm trying to use your library to connect xamarin forms server with xamarin forms client.
i can call server method but no response on the client.

my exception is: "Timeout reached without reponse"
this is StackTrace
at Xeeny.Transports.ResponseContext.GetResponse () [0x00021] in <917d92855ad64c8795ccaaf2e3600964>:0
at Xeeny.Transports.TransportBase.SendRequest (Xeeny.Transports.Message message) [0x0013f] in <917d92855ad64c8795ccaaf2e3600964>:0
at Xeeny.Connections.ClientConnection.InvokeAsync[TResponse] (System.String operation, System.Object[] parameters) [0x00099] in <33f4d7a082534d29b53ff98c310e6bbc>:0

Can you help me to use your library?

Cannot install package

Greets,

I dont know if its a bug or something, but I try to install from nuget the version 1.2.3 and it says that Xeeny doesnt have a compatible version for .NET Framework 4.5.2 or 4.6.1.

Thank you !

Named pipe transport

For local, interprocess comms, that do not go outside the machine, it would be nice to have a named pipes transport that can be used. Named pipes is supported with .net standard 2.0, so it could be done.

Xamarin and Xeeny

Hi ,

First of all , this is a fantastic solution . I tried to use for xamarin (Android - Windows) communication. It almost worked. I can connect from adnroid (Tcp and http) to a windows host , but the methode call does not work. When i call a function from the client it will run on the server , but never return on the client and it will be freez.
I used " async await " methode call on xamarin.

Did you try it ever ?

Thank you ,
Karesz

New logo for Xeeny

I wanted to contribute toXeeny. I designed a logo for Xeeny. If you like it, I'll send you the files.

xeeny

Fragmented messages using JsonSerializer sometimes don't send properly

There seems to be some kind of heisenbug when sending long messages using JsonSerializer - the receiving end gets a fragment with no header information somehow. I've uploaded a project to my fork demonstrating the issue.

If I put a conditional breakpoint on SocketBase.Listen (as below), everything seems to run just fine:

image

But if I disable it, I almost immediately get an exception because it doesn't recognise the message type:

image

On the iteration of the loop which threw the exception, count contains a value which would have triggered the breakpoint:

image

Allow custom logger providers

Since both properties of BaseBuilder are protected internal, it is difficult to add custom ILoggerProvider instances to the default LoggerFactory in the connection.

I understand there is an extension method to provide a new instance of LoggerFactory, but in my case, I'd rather keep the LoggerFactory that the connection is using separate from the LoggerFactory that the rest of the app is using. However, I'd like to inject a LoggerProvider (i.e. Serilog) so the behavior of the logging can be managed via configuration.

I think the easiest solution would be an additional extension method in Xeeny.Extensions.Loggers.BaseBuilderExtenions.

        public static TBuilder WithCustomLoggerProvider<TBuilder>(this TBuilder builder, ILoggerProvider provider)
            where TBuilder : BaseBuilder
        {
            builder.LoggerFactory.AddProvider(provider);
            return builder;
        }

Can this do IPC with NamedPipes?

Hi i came across this looking for a solid solution to communicate between some personal .net core 2.0 applications im working on. I was wondering if i can do NamedPipe IPC with it? i notice that i can setup custom transports with it. How would i setup a namedpipe transport? Sorry im new to c# just wondering if you had an example custom transport
Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.