Ejemplo n.º 1
0
        protected async Task <bool> RunCreateToken(IFiberRw <AsyncToken> fiberRw)
        {
            var token = TokenFactory.CreateAsynToken(fiberRw, AsyncServicesRegisterDict);

            if (!ActorTokenDict.TryAdd(token.SessionId, token))
            {
                ActorTokenDict.AddOrUpdate(token.SessionId, token, (a, b) => token);
            }

            fiberRw.UserToken = token;
            return(await token.RunIt());
        }