Question
Using C# Window Form Set up a WCF application that contains the Service Library, the Host, and a client The library is to manage data
Using C# Window Form Set up a WCF application that contains the Service Library, the Host, and a client
The library is to manage data source provide as a List of students
public class Student
{
public string First { get; set; }
public string Last { get; set; }
public int ID { get; set; }
public List
}
static List
{
new Student {First="Svetlana", Last="Omelchenko", ID=111, Scores= new List
new Student {First="Claire", Last="O'Donnell", ID=112, Scores= new List
new Student {First="Sven", Last="Mortensen", ID=113, Scores= new List
new Student {First="Cesar", Last="Garcia", ID=114, Scores= new List
new Student {First="Debra", Last="Garcia", ID=115, Scores= new List
new Student {First="Fadi", Last="Fakhouri", ID=116, Scores= new List
new Student {First="Hanying", Last="Feng", ID=117, Scores= new List
new Student {First="Hugo", Last="Garcia", ID=118, Scores= new List
new Student {First="Lance", Last="Tucker", ID=119, Scores= new List
new Student {First="Terry", Last="Adams", ID=120, Scores= new List
new Student {First="Eugene", Last="Zabokritski", ID=121, Scores= new List
new Student {First="Michael", Last="Tucker", ID=122, Scores= new List
};
The Contract should contain operations to:
1. Return a student object by id
2. Add a new student to the data source. The service library should not allow two students with the same id
3. Add a grade to a student by id
4. Return the list (as an array) of all students whose grade average is below the overall average. Where the overall average is the average of all the student averages (suggest to add the methods GetAverage and AddGrade in the Student class)
The Host should use configuration (use either Console or Windows)
The Client should query the service 1. Get a Student and display all the student info including the grades 2. Add new Student, have at least 3 grades added to this student 3. Add a grade to a student providing it id 4. Request a list of all students whose grade average is below the overall average
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started