Esempio n. 1
0
        public ConnectionIdentity execute(CreateConnectionRequest create_request)
        {
            set_request(create_request)
                .find_user()
                .validate()
                .add_connected_user_to_repository()
                .Commit();

            return new ConnectionIdentity() { connection_id = connected_user.ID };
        }
Esempio n. 2
0
 private CreateConnection set_request(CreateConnectionRequest create_request)
 {
     request = Guard.IsNotNull(create_request, "create_request");
     return this;
 }