Exemplo n.º 1
0
 void IUserEventObserver.UserContextChange(TrackableUserContextTracker userContextTracker)
 {
     // this method is called by a worker thread of TestActorBoundSession actor
     // which is not same with with a test thread but invocation is serialized.
     // so if you access _userContext carefully, it could be safe :)
     userContextTracker.ApplyTo(UserContext);
 }
Exemplo n.º 2
0
    void IUserEventObserver.UserContextChange(TrackableUserContextTracker userContextTracker)
    {
        userContextTracker.ApplyTo(_userContext);

        var userContextJson = JsonConvert.SerializeObject(_userContext, s_jsonSerializerSettings);

        WriteLine("-> OnUserContextChange: " + userContextTracker.ToString() + " => " + userContextJson);
    }
Exemplo n.º 3
0
 void IUserEventObserver.UserContextChange(TrackableUserContextTracker userContextTracker)
 {
     G.Logger.InfoFormat("UserContext: {0}", userContextTracker);
     userContextTracker.ApplyTo(G.UserContext);
 }
Exemplo n.º 4
0
 void IUserEventObserver.UserContextChange(TrackableUserContextTracker userContextTracker)
 {
     // this method is called by a worker thread of TestActorBoundSession actor
     // which is not same with with a test thread but invocation is serialized.
     // so if you access _userContext carefully, it could be safe :)
     userContextTracker.ApplyTo(UserContext);
 }
Exemplo n.º 5
0
 void IUserEventObserver.UserContextChange(TrackableUserContextTracker userContextTracker)
 {
     G.Logger.InfoFormat("UserContext: {0}", userContextTracker);
     userContextTracker.ApplyTo(G.UserContext);
 }