Anonymous

My feedback

  1. 385 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: facebook google
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    under review  ·  21 comments  ·  1. BreezeJS Feature Suggestions  ·  Flag idea as inappropriate…  ·  Admin →
    Anonymous commented  · 

    Fyi: I put the logic for the sync mechanism into the entity definitions for the EntityStore, like this:

    //Base Ctor
    entityCtor = function () {
    //holds snycState init to unchanged
    this.entitySyncStateObservable = ko.observable(config.syncPubSubStates.isUnchangedState);
    //... more stuff, not interesting here
    }

    and in the actual ctor for the entity
    teamCtor = function () {
    entityCtor.apply(this, arguments);
    }

    and extend the entity Ctor with the synclayer:
    breezeSyncLayer.extendEntityCtor(teamCtor);

    Anonymous commented  · 

    SignalR ist a great tool and i integrated it to a certain extend into my project to keep the GUIs on each client in sync.
    I did it half-automatic (do not have time to implement full automation) and push a change notification to all other clients when the save-success-callback of a change of an entity is running, like this.

    signalSyncNew = function () {
    syncHub.signalSyncEntity(this.entityType.toString(), this.entityAspect.getKey(), config.syncPubSubStates.isNewState);
    }

    All i have to do is entity.signalSyncNew or entity.signalSyncDeleted() etc. The other clients then decide how to handle the change and reload the entity or load it in the first place on its own if they are interrested in it at all. A little group managment is in it too.
    For one thing i did a lock mechanism for a specific type of entity and only one user can access/edit the entity. Not the best idea to do something like this, but to learn signalR and play its ok.

    The work to be done by hand is mostly one line of code for entities. Works like a charm. I implemented this for fun to learn it but now the people want it for many other things too :).

  2. 926 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: facebook google
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    19 comments  ·  1. BreezeJS Feature Suggestions  ·  Flag idea as inappropriate…  ·  Admin →

    To accelerate the development of this particular feature we are seeking user support through crowdfunding.

    Want to learn more? Send us an email at breezeadmin@ideablade.com and we’ll send you details on how you can participate.

    Thanks for helping us make BreezeJS the best open source project on the planet!

    Anonymous shared this idea  · 

Feedback and Knowledge Base