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

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

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