コード例 #1
0
        public void RegisterSession(ISessionData sessionData)
        {
            var data = new RegisterSessionRequest {
                Session = sessionData.ToSessionData()
            };

            ExecuteCommand(data, "session", "register");
        }
コード例 #2
0
        public void RegisterSession(ISessionData sessionData)
        {
            var data = new RegisterSessionRequest {
                Session = sessionData.ToSessionData()
            };

            var jsonFormatter = new JsonMediaTypeFormatter();
            var content       = new ObjectContent <RegisterSessionRequest>(data, jsonFormatter);

            ExecuteCommand(content, "session", "register");
        }