Exemple #1
0
        public ActivityExecutor(Guid activityId, ActivitySession session)
        {
            this.activityId = activityId;
            this.session    = session as ActivitySession;
            if (this.session == null)
            {
                throw new ArgumentException("Invalid session object", "session");
            }

            if (!this.session.SelfInitiated)
            {
                this.session.ChatHost.ActivitySessionCancelled += chatHost_ActivitySessionCancelled;
            }
        }
Exemple #2
0
        public static ActivitySession FromInvite(Guid sessionId, ChatHost chatHost, ISquiggleEndPoint localUser, ISquiggleEndPoint remoteUser, Guid activitySessionId)
        {
            var session = new ActivitySession(sessionId, chatHost, localUser, remoteUser, activitySessionId, false);

            return(session);
        }
Exemple #3
0
        public static ActivitySession Create(Guid sessionId, ChatHost chatHost, ISquiggleEndPoint localUser, ISquiggleEndPoint remoteUser)
        {
            var session = new ActivitySession(sessionId, chatHost, localUser, remoteUser, Guid.NewGuid(), true);

            return(session);
        }