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])); } }
public string Concatenate(IntParams par) { return(string.Format("{0}{1}", par.P1, par.P2)); }
public int Sum(IntParams par) { return(par.P1 + par.P2); }
public void SetIntParamsProperty(IntParams par) { IntParamsProp = par; }