Tpm2Lib.Tbs.GetSessions C# (CSharp) Method

GetSessions() private method

Get the TBS ObjectContext given SessionIn objects collected from the inputs stream.
private GetSessions ( TbsContext caller, SessionIn inSessions ) : Tpm2Lib.ObjectContext[]
caller TbsContext
inSessions SessionIn
return Tpm2Lib.ObjectContext[]
        private ObjectContext[] GetSessions(TbsContext caller, SessionIn[] inSessions)
        {
            var contexts = new ObjectContext[inSessions.Length];
            for (int j = 0; j < inSessions.Length; j++)
            {
                contexts[j] = ContextManager.GetContext(caller, inSessions[j].handle);
                if (contexts[j] == null)
                {
                    return null;
                }
            }
            return contexts;
        }