Beispiel #1
0
        void ConfigureInboxTables()
        {
            if (this.currentUser != null)
            {
                // create the client for the inbox service
                InboxServiceClient client = new InboxServiceClient();

                // 1. Inbox
                this.inboxParticipate.InboxItems = client.GetRequestsFor(currentUser.Id);

                // 2. Started by Me
                this.activeStartedByMe.InboxItems = client.GetRequestsStartedBy(currentUser.Id);

                // 3. Completed started by Me
                this.archivedStartedByMe.InboxItems = client.GetArchivedRequestsStartedBy(currentUser.Id);

                // close the service client
                client.Close();
            }
        }
Beispiel #2
0
        void ConfigureInboxTables()
        {
            if (this.currentUser != null)
            {
                // create the client for the inbox service
                InboxServiceClient client = new InboxServiceClient();

                // 1. Inbox
                this.inboxParticipate.InboxItems = client.GetRequestsFor(currentUser.Id);

                // 2. Started by Me
                this.activeStartedByMe.InboxItems = client.GetRequestsStartedBy(currentUser.Id);

                // 3. Completed started by Me
                this.archivedStartedByMe.InboxItems = client.GetArchivedRequestsStartedBy(currentUser.Id);

                // close the service client
                client.Close();
            }
        }