dotNetify | yet powerful way to build | Websocket library
kandi X-RAY | dotNetify Summary
kandi X-RAY | dotNetify Summary
DotNetify is a free, open source project that lets you create real-time, reactive, cross-platform apps with React, React Native, Vue, Knockout or Blazor front-end on C# .NET back-end via WebSocket (SignalR).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of dotNetify
dotNetify Key Features
dotNetify Examples and Code Snippets
Community Discussions
Trending Discussions on dotNetify
QUESTION
I am using React app that wraps DotNetify around Cordova to build iOS and Android app.
Dotnetify connects to a WebSocket Server at given URL, we need to define based on build web or Cordova what is the host URL to connect to the Socket/SignalR server, current line is:
...ANSWER
Answered 2019-Apr-15 at 07:29You can use below to set below in your index.js
to set the host right before connecting line.
QUESTION
I have a custom binding handler that I am binding to a complex object in my view model.
The binding handler works correctly and the update
function is called when any of the observable's properties update. However, the update
function is called for every updated property, leading to odd behaviour since I am relying on the entire object to be available and up to date.
I understand why this is happening, as each property is causing an update to be called, and I think I know how to prevent this - by using the deferred updates functionality of Knockout.
However, I am unable to find how to enable deferred updates just for the observable in my custom binding. I do not want to enable it application wide as I am writing the binding as a library function.
I have tried many different methods including:
- trying to extend the binding handler itself;
- extending the
init
function; - extending the
valueAccessor
; - replacing the
valueAccessor
with a new observable withdeferred
applied; - creating a computed observable and rebinding the element;
All of which have not worked.
I have not found any other custom binding handler that comes remotely close to this sort of function and have been trying to piece it together from other functions.
My binding code itself is relatively simple, I am taking the bound object and simply splitting out the parameters and passing them to a Code Mirror instance.
...ANSWER
Answered 2018-Nov-05 at 10:26It's unfortunate you haven't shown what initEditor
, createEditor
and updateEditor
do with the observableValue
, because that's probably where you should be extending your observables.
The init
and update
methods of a binding create computed dependencies, meaning that any observable that is unwrapped in the call stack starting from init
will cause the update
method to be called.
In an abstract example:
QUESTION
Im trying to test my React class, that has import dotnetify from "dotnetify";
import. That works fine, but Jest says, that dotnetify is undefined. If i change to import dotnetify = require("dotnetify");
, Jest passes test, but this is silly workaround. How to explain Jest, that dotnetify is not undefined?
Than you in advance.
...ANSWER
Answered 2018-May-19 at 16:42This cannot be 'explained' to Jest, it's really undefined.
There are several ways to handle CommonJS modules in TypeScript. As explained in this answer, there will be default import in CommonJS packge only if synthetic imports were enabled with esModuleInterop
(allowSyntheticDefaultImports
) compiler option.
Otherwise it should be done like:
QUESTION
I implemented the possibility to add "properties" at runtime to objects with special SystemComponent.PropertyDescriptor-s.
Due to the fact that these properties are only accessible with the ComponentModel.TypeDescriptor and not via Reflection, the properties work well in WPF environment but not with Serialization.
This is because of all JSON serializers, that I know, use reflection on the type. I analyzed Newtonsoft.Json, System.Json, System.Web.Script.JavaScriptSerializer, System.Runtime.Serialization.Json.
I don't think I can use any of these serializers because none of these allow modifying the retrieval of the properties on an instance (e.g. ContractResolver not possible).
Is there any way to make the JSON serialization work with one of those serializers? Maybe by special configuration, overriding certain methods on the Serializer or similar? Is there another serializer available that fulfills this requirement?
Background:
The idea of the runtime properties is based on this blog entry.
The serialization requirement comes from using dotNetify that serializes the viewmodels to send them to the client.
Currently, I made a fork of dotnetify and made a temporary workaround for the serialization by partially serializing with Newtonsoft.Json and a recursive helper. (You can look at the diff if interested in it: the Fork).
...ANSWER
Answered 2017-Oct-27 at 06:51One possibility would be to create a custom ContractResolver
that, when serializing a specific object of type TTarget
, adds a synthetic ExtensionDataGetter
that returns, for the specified target, an IEnumerable>
of the properties specified in its corresponding DynamicPropertyManager
.
First, define the contract resolver as follows:
QUESTION
As the title says... I've been using C# MVC for most of my web dev needs for many years. We have a bunch of legacy systems here so my technology choices have been set in stone.
New system time! Looking at React, dotnetify seems cool but it pushes towards Core. Core is so very very different to what I'm used to. As an example, no FormsAuthentication.
I'm obviously fine with learning a new tech if that's what "everybody is doing" -- but are they? Or is the .NET world split between .NET 5 and Core?
...ANSWER
Answered 2017-Oct-16 at 10:33In short, if your Application have dependency on Legacy Libraries and tools, which runs only on Windows Server
for example SQL Server Reporting Services
, there is no benefit of using .Net Core
in terms of cross platform
support
In such case, when there is dependency on legacy Libraries and tools, but you are still ready to deploy final application on Windows Server (and not targeting Linux
)- then you can go ahead with .Net Core
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install dotNetify
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page