예제 #1
0
 public void AddIntParams(Guid guid, IntParams par)
 {
     if (!s_sessions.TryAdd(guid, par))
     {
         throw new InvalidOperationException(string.Format("Guid {0} already existed, and the value was {1}.", guid, s_sessions[guid]));
     }
 }
예제 #2
0
 public string Concatenate(IntParams par)
 {
     return(string.Format("{0}{1}", par.P1, par.P2));
 }
예제 #3
0
 public int Sum(IntParams par)
 {
     return(par.P1 + par.P2);
 }
예제 #4
0
 public void SetIntParamsProperty(IntParams par)
 {
     IntParamsProp = par;
 }