Beispiel #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);
 }
Beispiel #2
0
    void IUserEventObserver.UserContextChange(TrackableUserContextTracker userContextTracker)
    {
        userContextTracker.ApplyTo(_userContext);

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

        WriteLine("-> OnUserContextChange: " + userContextTracker.ToString() + " => " + userContextJson);
    }
Beispiel #3
0
 void IUserEventObserver.UserContextChange(TrackableUserContextTracker userContextTracker)
 {
     G.Logger.InfoFormat("UserContext: {0}", userContextTracker);
     userContextTracker.ApplyTo(G.UserContext);
 }
Beispiel #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);
 }
 void IUserEventObserver.UserContextChange(TrackableUserContextTracker userContextTracker)
 {
     G.Logger.InfoFormat("UserContext: {0}", userContextTracker);
     userContextTracker.ApplyTo(G.UserContext);
 }